示例#1
0
 public function imageAction()
 {
     $this->getResponse()->setHeader('Content-Type', 'image/png');
     $this->_helper->layout->disableLayout();
     $this->_helper->viewRenderer->setNoRender(true);
     $id = $this->_getParam('id');
     $img = Application_Model_M_Banner::getImage($id);
     echo $img;
 }
示例#2
0
 public function delete()
 {
     $where = 'id=' . $this->getId();
     return Application_Model_M_Banner::delete($where);
 }