assign("title",$page->getTitle()); $template->assign("rootUrl",$page->getRootUrl()); $template->assign("description",$page->getDescription()); $news = new News(50, 0, "feeds"); // mostra no máximo 20 noticias e inicia no 0 $newsBeans = $news->getBean(); @ $template->assign("updated", $newsBeans[count($newsBeans)-1]->date); $template->assign("news",$newsBeans); $template->display($page->getTemplate()); } /** * @see Action::doGet() * */ public function doGet(Page $page, Smarty $template, Array $get) { $this->doAccess($page, $template); } /** * @see Action::doPost() * */ public function doPost (Page $page, Smarty $template, Array $get) { $this->doAccess($page, $template); } } ?>