示例#1
0
 public function inLitter($where)
 {
     $table = $this->getTable();
     $model = new Company_Model_Company();
     return $model->inLitter($where);
 }
示例#2
0
 public function inlitterAction()
 {
     if ($this->getRequest()->isPost()) {
         $del = $this->getRequest()->getPost('del');
         if ($del == 'Yes') {
             $id = $this->getRequest()->getPost('id');
             $model = new Company_Model_Company();
             $model->inLitter('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);
         }
     }
 }