PHP编程:ThinkPHP后台首页index使用frameset时的注意事项分析
《ThinkPHP后台首页index使用frameset时的注意事项分析》要点: PHP实例html的frameset标签在多窗口程序设计中有着广泛的应用,尤其是在项目后台页面部门.本文就来分析ThinkPHP后台首页index使用frameset时的注意事项.具体如下: PHP实例文件路径:aoli/admin/Lib/Action/IndexAction.class.php PHP实例代码如下: PHP实例
<?php
class IndexAction extends Action{
public function index(){
$this->display();
}
public function top(){
$this->display();
}
public function left(){
$this->display();
}
public function right(){
$this->display();
}
}
?>
PHP实例文件路径:aoli/admin/Tpl/default/Index PHP实例index.html页面代码如下: PHP实例
<frameset rows="20%,*">
<frame src="__URL__/top" name="top">
<frameset cols="20%,*">
<frame src="__URL__/left" name="left">
<frame src="__URL__/right" name="right">
</frameset>
</frameset>
PHP实例top.html(略) PHP实例left.html(略) PHP实例right.html(略) PHP实例注意事项: PHP实例调用top.html,left.html,right.html的时候应该用路径__URL__/来调用办法,而不能用__TMPL__/Index/来调用模板. PHP实例感兴趣的读者可以调试运行本文示例,体会路径挪用的具体用法. 欢迎参与《ThinkPHP后台首页index使用frameset时的注意事项分析》讨论,分享您的想法,编程之家 52php.cn为您提供专业教程。 (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |