public function deleteAction() { $IDNews = (int) $this->_getParam('IDNews', 0); if ($IDNews) { $News = new App_Model_DbTable_News(); $News->deleteNews($IDNews); $this->_helper->redirector('index'); } }
public function indexAction() { $News = new App_Model_DbTable_News(); $this->view->news = $News->getNewsFromPage($this->view->page['IDPagina']); }