assign("title_head","cooperation"); parent::_initialize(); // TODO: Change the autogenerated stub } public function index(){ $this->display(); } /** *用户注册协议 */ public function remember(){ $category=D('category')->where(array('name'=>'reg_protocol'))->find(); $docu=D('document')->where(array('category_id'=>$category['id'],'status'=>1))->find(); $document_article=D('document_article')->where(array('id'=>$docu['id']))->find(); $this->assign('article',$document_article['content']); $this->display(); } }