public function outLitter($where) { $table = $this->getTable(); $model = new Company_Model_Company(); return $model->outLitter($where); }
public function outlitterAction() { if ($this->getRequest()->isPost()) { $del = $this->getRequest()->getPost('del'); if ($del == 'Yes') { $id = $this->getRequest()->getPost('id'); $model = new Company_Model_Company(); $model->outLitter('id = ' . (int) $id); } return $this->_helper->redirector('index'); } else { $id = $this->_getParam('id', 0); if ($id > 0) { $model = new Company_Model_Company(); $this->view->company = $model->fetchEntry($id); } } }