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'); }
/** Show all frequently asked questions * @access public * @return void */ public function indexAction() { $faqs = new Faqs(); $this->view->faqs = $faqs->getAll(); }
public function indexAction() { $this->view->subtitle = $this->info->sitio->faqs->index->titulo; $this->view->faqs = Faqs::getAll($this->session->sitio->id); }