/** * inlitterAction for Activitys * * @return void */ public function inlitterAction() { //check if the user select a production $this->production = new Zend_Session_Namespace('production'); if ($this->production->id == null) { return $this->_helper->_redirector->gotoSimple('index', 'production', 'production'); } if ($this->getRequest()->isPost()) { $del = $this->getRequest()->getPost('del'); if ($del == 'Yes') { $id = $this->getRequest()->getPost('id'); $model = new Production_Model_Activity(); $model->inLitter('id = ' . (int) $id); } return $this->_helper->redirector('index'); } else { $id = $this->_getParam('id', 0); if ($id > 0) { $model = new Production_Model_Activity(); $this->view->activity = $model->fetchEntry($id); } } }