assign("title_head","notice"); parent::_initialize(); // TODO: Change the autogenerated stub } public function index($p=1){ $model = new DocumentModel(); $data = $model->getNotice($p); $this->showPage($data['count']); $this->assign("data",$data['data']); $this->display(); } public function notice($p=1){ $model = new DocumentModel(); $data = $model->getArticleListsByCategory('open_notice',$p); $this->showPage($data['count']); $this->assign("data",$data['data']); $this->display('index'); } public function inform($p=1){ $model = new DocumentModel(); $data = $model->getArticleListsByCategory('open_inform',$p); $this->assign("data",$data['data']); $this->display('index'); } public function detail($id){ $model = new DocumentModel(); $data = $model->getDetail($id); $this->assign("data",$data); $this->display(); } }