示例#1
0
 public function indexAction()
 {
     try {
         if ($this->getRequest()->isPost()) {
             $_data = $this->getRequest()->getPost();
         } else {
             $search = array('title' => '');
         }
         $db = new Other_Model_DbTable_Dbfaq();
         $rs = $db->getAllFAQ($search);
         $list = new Application_Form_Frmtable();
         $collumns = array("Question", "Answer", "Status");
         $link = array('module' => 'other', 'controller' => 'faq', 'action' => 'edit');
     } catch (Exception $e) {
         Application_Form_FrmMessage::message("Application Error");
         Application_Model_DbTable_DbUserLog::writeMessageError($e->getMessage());
     }
     $this->view->list = $list->getCheckList(0, $collumns, $rs, array('question' => $link, 'answer' => $link));
 }