getAboutList(); $this->assign('aboutList',$aboutList); } public function _empty() { $action = Request::instance()->action(); $info = $this->getAboutData($action); $this->assign('info',$info); return $this->fetch('about/index'); } /** * 关于 的页面加载 */ private function getAboutData($action) { $info = model('Aboutus')->where('name',$action)->find(); if (empty($info)) $this->error('暂无数据'); return $info; } /** * 服务协议 */ public function agreement(){ return $this->fetch(); } }