Beispiel #1
0
 /**
  * Load the data, don't forget to validate the incoming data
  *
  * @return	void
  */
 private function getData()
 {
     // get questions
     $this->items = FrontendFaqModel::getCategories();
     // go over categories
     foreach ($this->items as &$item) {
         // add questions info to array
         $item['questions'] = FrontendFaqModel::getQuestions($item['id']);
     }
 }
Beispiel #2
0
 /**
  * Parse the data into the template
  *
  * @return	void
  */
 private function parse()
 {
     // assign questions
     $this->tpl->assign('faqQuestions', FrontendFaqModel::getQuestions((int) $this->data['id']));
 }