标签:delay writer public 操作 -o log href down idt
笔记!
实现:
前端:
首先导航需要给他们code(主键):
<foreach name="chaa" item="ab"> <if condition="$ab.a_remark neq 1 "> <li><a href="{$ab.a_writer}?id={$ab.a_id}" id="zhao" hhh="asad">{$ab.a_title}</a></li> <else /> <li class="dropdown"> <a href="{$ab.a_writer}?id={$ab.a_id}" class="dropdown-toggle " data-toggle="" data-hover="dropdown" data-delay="0" data-close-others="false"> {$ab[‘a_title‘]} <b class=" icon-angle-down"></b> </a> <ul class="dropdown-menu"> <foreach name="ab[‘shao‘]" item="v"> <li><a href="{$v.a_writer}"">{$v.a_title}</a></li> </foreach>
没错 只是传了一个主键,
控制器:
//关于我们 public function index02(){ $this->gg(); $this->ff(); $ids = I(‘get.id‘); dump($ids);$cha = M(‘article‘); $chaxun =$cha->where("laiyuan_url = $ids")->find(); $this->assign(‘chaxun‘,$chaxun); $this->display(‘guo:public/13-2about‘); }
根据主键查来源的url;
完事以后 ,前面:
<div class="r_name"><span>{$chaxun.a_title}</span></div> <div class="about"> <!--<img src="images/pic8.png" width="850" height="449" /><br />--> <p style="text-indent:2em; line-height: 30px;"></p> <p style="text-indent:2em; line-height: 30px;"> {$chaxun.a_content} </p> </div>
标签:delay writer public 操作 -o log href down idt
原文地址:http://www.cnblogs.com/xuan584521/p/7349573.html