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; }
public function delete() { $where = 'id=' . $this->getId(); return Application_Model_M_Banner::delete($where); }