public function agregarAction() { $form = new Application_Form_Test(); if ($this->getRequest()->isPost()) { if ($form->isValid($this->_getAllParams())) { $model = new Application_Model_Tests(); $model->save($form->getValues()); return $this->_redirect('/tests/'); } } $this->view->form = $form; }