Ejemplo n.º 1
0
 public function indexAction()
 {
     $this->view->subtitle = $this->info->sitio->faqs->index->titulo;
     $orden = (string) $this->_request->getParam('orden', 0);
     $asc = (bool) $this->_request->getParam('asc', 0);
     if (empty($orden)) {
         $orden = "fecha";
     }
     if ($asc) {
         $orden .= " ASC";
     } else {
         $orden .= " DESC";
     }
     $this->view->orden_asc = $asc;
     $this->view->faqs = Faqs::getAll($this->session->sitio->id, 0, $orden);
     $this->render('admin');
 }
Ejemplo n.º 2
0
 /** Show all frequently asked questions
  * @access public
  * @return void
  */
 public function indexAction()
 {
     $faqs = new Faqs();
     $this->view->faqs = $faqs->getAll();
 }
Ejemplo n.º 3
0
 public function indexAction()
 {
     $this->view->subtitle = $this->info->sitio->faqs->index->titulo;
     $this->view->faqs = Faqs::getAll($this->session->sitio->id);
 }