Ejemplo n.º 1
0
 public function indexAction()
 {
     SxCms_Acl::requireAcl('news', 'news.index');
     $proxy = new SxModule_News_Proxy();
     $news = $proxy->getAll(false, $_SESSION['System']['lng'], true, $this->_getParam('page', 1), 25, true);
     $this->view->paginator = $news;
 }
Ejemplo n.º 2
0
 public function archiveAction()
 {
     $newsProxy = new SxModule_News_Proxy();
     $news = $newsProxy->getAll(true, $this->view->lng, true, (int) $this->_getParam('page', 1), 10);
     //$page = new SxCms_Page();
     $pageProxy = new SxCms_Page_Proxy();
     $page = $pageProxy->getPageById(242);
     $this->view->page = $page;
     $this->view->news = $news;
 }