Beispiel #1
0
 public function index()
 {
     $mo = new Model_Article();
     $list = $mo->getList();
     var_export($list);
     exit;
 }
Beispiel #2
0
 /**
  * 显示文章列表
  */
 public function index()
 {
     $mo = new Model_Article();
     $options = array('has_page' => true, 'status' => 1, 'limit' => 20, 'post_time' => '2012-6-20');
     if (isset($_GET['keyword'])) {
         $options['keyword'] = $_GET['keyword'];
     }
     $this->list = $mo->getList($options);
     $this->pagePanel = $mo->pagePanel;
 }
Beispiel #3
0
 /**
  * (non-PHPdoc)
  * @see Controller::index()
  */
 public function index()
 {
     $arr = [3234, 'abc'];
     echo '<pre>';
     exit;
     $mo = new Model_Article();
     //获取新闻公告列表
     $options = array();
     $this->list = $mo->getList($options);
 }