Exemple #1
0
 /**
  * The support index handler.
  * 
  * @access public
  * @return string The HTML code.
  */
 public function index()
 {
     $Page = $this->getContentPage();
     $Award = new Award();
     $Faq = new Faq();
     $Article = new Article();
     $params = array();
     $params[] = 'Type = ' . Article::ARTICLE;
     $params[] = 'PostedAt < ' . time();
     $params[] = $Article->getParam('reference', $Page);
     $this->getView()->set(array('Documents' => $Page->getDocuments(), 'Faqs' => $Faq->findList(array(), 'Position asc'), 'Papers' => $Award->findList(array('Type = ' . Award::SUPPORT), 'Position asc'), 'Articles' => $Article->findList($params, 'PostedAt desc')));
     return $this->getView()->render();
 }
Exemple #2
0
 /**
  * The index handler.
  * 
  * @access public
  * @return string The HTML code.
  */
 public function index()
 {
     $Faq = new Faq();
     $this->getView()->set('Faqs', $Faq->findList(array(), 'Position asc'));
     return $this->getView()->render();
 }