public function addAction() { // action body $cat_form = new Application_Form_Addcat(); if ($this->getRequest()->isPost()) { if ($cat->isValid($_POST)) { $cat_model = new Application_Model_Category(); $this->view->success = $cat_model->addCat($cat_form->getValues()); $this->_redirect('/Category/list'); } } $this->view->form = $user_form; }