public function parentAction() { $this->_helper->layout->disableLayout(); if ($this->getRequest()->isPost()) { $Data = $this->getRequest()->getPost(); if ($Data['news'] && $Data['page']) { Zwe_Model_News::parentNews((int) $Data['news'], (int) $Data['page']); $this->view->message = "News parent page changed successfully"; } } }
public function __set($Name, $Value) { if ('Author' == $Name) { if ($Value instanceof App_Model_User) { $this->_author = $Value; } else { throw new Exception('$value is not the expected value'); } } else { parent::__set($Name, $Value); } }
/** * Ricava le news dal database. */ protected function specificPageInit() { $this->_news = Zwe_Model_News::getPageNews($this->IDPage); }