public function newAction() { $this->_helper->layout()->setLayout('submenu'); $form = $this->_getForm(); $this->view->form = $form; if ($this->getRequest()->isPost() && $form->isValid($this->getRequest()->getPost())) { $category = new Model_Hm_Op_Category(); $category->fromArray($form->getValues()); $category->save(); $this->_helper->redirector('admin', 'options', null); } }