protected function saveEditor()
    {
        $this->controlAccessSaveEditor();

        $submitted = $this->getSubmitted();
        $result = $this->editor->save($submitted);

        if ($result === true) {
            $message = $this->text('File has been saved');
            $this->redirect("admin/tool/editor/{$submitted['module']['id']}", $message, 'success');
        }

        $this->redirect('', $this->text('An error occurred'), 'warning');
    }
protected function saveEditor()
    {
        $this->controlAccessSaveEditor();

        $submitted = $this->getSubmitted();
        $result = $this->editor->save($submitted);

        if ($result === true) {
            $message = $this->text('File has been saved');
            $this->redirect("admin/tool/editor/{$submitted['module']['id']}", $message, 'success');
        }

        $this->redirect('', $this->text('An error occurred'), 'warning');
    }
protected function saveEditor ( ) { $ this -> controlAccessSaveEditor ( ) ; $ submitted = $ this -> getSubmitted ( ) ; $ result = $ this -> editor -> save ( $ submitted ) ; if ( $ result === true ) { $ message = $ this -> text ( 'File has been saved' ) ; $ this -> redirect ( "admin/tool/editor/{$submitted['module']['id']}" , $ message , 'success' ) ; } $ this -> redirect ( '' , $ this -> text ( 'An error occurred' ) , 'warning' ) ; }
Writes a submitted content to a theme file
Writes a submitted content to a theme file