public function editAction()
    {
        $form = new \CmsAdmin\Form\Text(new \Cms\Orm\CmsTextRecord($this->id));
        $this->view->textForm = $form;
        //brak wysłanych danych
        if (!$form->isMine()) {
            return;
        }
        //zapisany
        if ($form->isSaved()) {
            $this->getMessenger()->addMessage('messenger.text.text.saved', true);
            $this->getResponse()->redirect('cmsAdmin', 'text');
        }
        $this->getMessenger()->addMessage('messenger.text.text.error', false);
    }
public function editAction()
    {
        $form = new \CmsAdmin\Form\Text(new \Cms\Orm\CmsTextRecord($this->id));
        $this->view->textForm = $form;
        //brak wysłanych danych
        if (!$form->isMine()) {
            return;
        }
        //zapisany
        if ($form->isSaved()) {
            $this->getMessenger()->addMessage('messenger.text.text.saved', true);
            $this->getResponse()->redirect('cmsAdmin', 'text');
        }
        $this->getMessenger()->addMessage('messenger.text.text.error', false);
    }
public function editAction ( ) { $ form = new \ CmsAdmin \ Form \ Text ( new \ Cms \ Orm \ CmsTextRecord ( $ this -> id ) ) ; $ this -> view -> textForm = $ form ; //brak wysłanych danych if ( ! $ form -> isMine ( ) ) { return ; } //zapisany if ( $ form -> isSaved ( ) ) { $ this -> getMessenger ( ) -> addMessage ( 'messenger.text.text.saved' , true ) ; $ this -> getResponse ( ) -> redirect ( 'cmsAdmin' , 'text' ) ; } $ this -> getMessenger ( ) -> addMessage ( 'messenger.text.text.error' , false ) ; }
Akcja edycji tekstu
Akcja edycji tekstu