public function addAction() { $id = (int) $this->getRequest()->getParam('cat'); $request = $this->getRequest(); $form = new Admin_Form_Menu_Add($id); if ($this->getRequest()->isPost()) { if ($form->isValid($request->getPost())) { $model = new App_Model_Menus(); $model->addMenus($form->getValues()); $this->_helper->flashMessenger->addMessage('Added'); return $this->_redirect('/admin/menu'); } } $this->view->form = $form; }