thinkphp
<br /> public function about()<br /> {<br /> require(CMS_PATH.'/data/config.php');<br /> $id = trim($_REQUEST['id']);<br /> $aboutclass = M('aboutclass');<br /> $list_about=$aboutclass->where('id='.$id)->select();<br /> $this->assign("aboutclass",$list_about);<br /> dump($list_about);<br /> $this->display();<br /> }<br />
<br /> public function about()<br /> {<br /> require(CMS_PATH.'/data/config.php');<br /> $id = trim($_REQUEST['id']);<br /> $aboutclass = M('aboutclass');<br /> $list_about['content']=$aboutclass->where('id='.$id)->select();<br /> $list_about['category']=$aboutclass->select();<br /> $this->assign("aboutclass",$list_about);<br /> dump($list_about);<br /> $this->display();<br /> }<br /> <br />