ThinkPHP后臺首頁index使用frameset時的注意事項分析
html的frameset標簽在多窗口程序設計中有著廣泛的應用,尤其是在項目后臺頁面部分。本文就來分析ThinkPHP后臺首頁index使用frameset時的注意事項。具體如下:
文件路徑:aoli/admin/Lib/Action/IndexAction.class.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(); } } ?>
文件路徑:aoli/admin/Tpl/default/Index
index.html頁面代碼如下:
<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>
top.html(略)
left.html(略)
right.html(略)
注意事項:
調用top.html,left.html,right.html的時候應該用路徑__URL__/來調用方法,而不能用__TMPL__/Index/來調用模板。
感興趣的讀者可以調試運行本文示例,體會路徑調用的具體用法。
相關文章
一張表搞清楚php is_null、empty、isset的區(qū)別
這篇文章主要介紹了一張表搞清楚php is_null、empty、isset的區(qū)別,isset 判斷變量是否已存在,empty 判斷變量是否為空或為0,is_null 判斷變量是否為NULL,需要的朋友可以參考下2015-07-07codeigniter中實現(xiàn)一次性加載多個view的方法
這篇文章主要介紹了codeigniter中實現(xiàn)一次性加載多個view的方法,實例分析了codeigniter中view方法的實用技巧,需要的朋友可以參考下2015-03-03ThinkPHP框架實現(xiàn)導出excel數(shù)據(jù)的方法示例【基于PHPExcel】
這篇文章主要介紹了ThinkPHP框架實現(xiàn)導出excel數(shù)據(jù)的方法,結合實例形式分析了thinkPHP添加org擴展基于PHPExcel進行Excel數(shù)據(jù)的導出操作相關實現(xiàn)技巧,需要的朋友可以參考下2018-05-05關于laravel 數(shù)據(jù)庫遷移中integer類型是無法指定長度的問題
今天小編就為大家分享一篇關于laravel 數(shù)據(jù)庫遷移中integer類型是無法指定長度的問題,具有很好的參考價值,希望對大家有所幫助。一起跟隨小編過來看看吧2019-10-10