where("topic_state=2")->select(); $this->assign('topicList',$topicList); return $this->fetch(); } /* * 专题详情 */ public function detail(){ $topic_id = I('topic_id/d',1); $topic = D('topic')->where("topic_id", $topic_id)->find(); $this->assign('topic',$topic); return $this->fetch(); } public function info(){ $topic_id = I('topic_id/d',1); $topic = D('topic')->where("topic_id", $topic_id)->find(); echo htmlspecialchars_decode($topic['topic_content']); exit; } }