Beispiel #1
0
 public function createAction()
 {
     $form = new Application_Form_Comments();
     $comments = new Application_Model_Comments();
     if ($this->_request->isPost()) {
         if ($form->isValid($this->_request->getPost())) {
             $comments->insert($form->getValues());
             $this->_redirect('/comment/retrieve');
         } else {
             $form->populate($form->getValues());
         }
     }
     $this->view->form = $form;
 }