framework/Core/Config.php
public function save()
    {
        $str = $this->prepareForSave($this->toArray());
        if (empty($this->__path)) {
            throw new Exception('Empty path for config save');
        }
        file_put_contents($this->__path, '<?php' . PHP_EOL . PHP_EOL . 'return ' . $str . ';');
        return $this;
    }
public function save()
    {
        $str = $this->prepareForSave($this->toArray());
        if (empty($this->__path)) {
            throw new Exception('Empty path for config save');
        }
        file_put_contents($this->__path, '<?php' . PHP_EOL . PHP_EOL . 'return ' . $str . ';');
        return $this;
    }
public function save ( ) { $ str = $ this -> prepareForSave ( $ this -> toArray ( ) ) ; if ( empty ( $ this -> __path ) ) { throw new Exception ( 'Empty path for config save' ) ; } file_put_contents ( $ this -> __path , '<?php' . PHP_EOL . PHP_EOL . 'return ' . $ str . ';' ) ; return $ this ; }
Saves config file
@return $this
@throws \T4\Core\Exception
Saves config file