在Thinkphp中应用 frame框架,按照一般的写法,框架里的网页是不显示的,提示404错误,必须通过特殊的写法才能正确显示,下面把正确写法给大家晒一下吧^-^
以IndexAction为例:
首先在此文件中:
public function head(){
$this->display();
}
然后再frame中
<frame src="__URL__/head" name="topFrame" scrolling="no" noresize="noresize" id="topFrame" />
重点是src的写法,src中的head就是上面的head()了
然后就依次类推就ok了~~