コード例 #1
0
 /**
  * inlitterAction for Receiptss
  *
  * @return void
  */
 public function inlitterAction()
 {
     if ($this->getRequest()->isPost()) {
         $del = $this->getRequest()->getPost('del');
         if ($del == 'Yes') {
             $id = $this->getRequest()->getPost('id');
             $model = new Finances_Model_Receipts();
             $model->inLitter('id = ' . (int) $id);
         }
         return $this->_helper->redirector('index');
     } else {
         $id = $this->_getParam('id', 0);
         if ($id > 0) {
             $model = new Finances_Model_Receipts();
             $this->view->receipts = $model->fetchEntry($id);
         }
     }
 }