コード例 #1
0
 function indexAction()
 {
     $orden = (string) $this->_request->getParam('orden', 0);
     $asc = (bool) $this->_request->getParam('asc', 0);
     if (empty($orden)) {
         $orden = "id";
     }
     if ($asc) {
         $orden .= " ASC";
     } else {
         $orden .= " DESC";
     }
     $this->view->orden_asc = $asc;
     $this->view->noticias = Noticias::getAll($this->session->sitio->id, null, $orden);
     $this->view->subtitle = $this->info->sitio->noticias->index->titulo;
     $this->render('admin');
 }
コード例 #2
0
 function historicoAction()
 {
     $this->view->subtitle = $this->info->sitio->noticias->index->titulo . " histórico ";
     $this->view->noticias = Noticias::getAll($this->session->sitio->id);
 }