public function newAction() { $this->_helper->layout()->setLayout('submenu'); $form = $this->_getForm(); $this->view->form = $form; if ($this->getRequest()->isPost()) { if ($form->isValid($this->getRequest()->getPost())) { $home = new Model_Hm_Home(); $home->fromForm($form->getValues()); $home->save(); $this->_helper->redirector('admin'); } } }