/** * 初始化测栏数据 * */ private function FormatSildeNews($type = 0) { //最新 $this->assign('silde_new_news', $this->_news->getList(10, $type, '', 'news_id desc', false)); //热门 $this->assign('silde_hot_news', $this->_news->getList(10, $type, '', 'hits desc', false)); }