public function addAction() { $form = new Admin_Form_Links_Add(); $model = new App_Model_Links(); if ($this->getRequest()->isPost()) { if ($form->isValid($this->getRequest()->getPost())) { $model->addLinks($form->getValues()); $this->_helper->flashMessenger->addMessage('Added'); return $this->_redirect('/admin/links'); } } $this->view->form = $form; }