Esempio n. 1
0
 /**
  * 返回帮助信息列表
  * @access public
  */
 function index()
 {
     echo "hello help!<br/>";
     $m = new Help();
     $data = $m->getHelp();
     //返回查询国家数据(model模式)
     //状态标题
     $count = count($data);
     for ($i = 0; $i < $count; $i++) {
         $data[$i]['status_cn'] = $m->getStatus('cn', $data[$i]['status']);
         $data[$i]['status_th'] = $m->getStatus('th', $data[$i]['status']);
     }
     $this->assign('data', $data);
     //输出到View页
 }