Maison > Article > développement back-end > thinkphp,该怎么处理
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 />这样怎么样?其实也可以自连接。 不知道lz这样要这样的目的