欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

ThinkPHP后臺(tái)首頁(yè)index使用frameset時(shí)的注意事項(xiàng)分析

 更新時(shí)間:2014年08月22日 17:20:45   投稿:shichen2014  
這篇文章主要介紹了ThinkPHP后臺(tái)首頁(yè)index使用frameset時(shí)的注意事項(xiàng),需要的朋友可以參考下

html的frameset標(biāo)簽在多窗口程序設(shè)計(jì)中有著廣泛的應(yīng)用,尤其是在項(xiàng)目后臺(tái)頁(yè)面部分。本文就來分析ThinkPHP后臺(tái)首頁(yè)index使用frameset時(shí)的注意事項(xiàng)。具體如下:

文件路徑: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頁(yè)面代碼如下:

 <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(略)

注意事項(xiàng):

調(diào)用top.html,left.html,right.html的時(shí)候應(yīng)該用路徑__URL__/來調(diào)用方法,而不能用__TMPL__/Index/來調(diào)用模板

感興趣的讀者可以調(diào)試運(yùn)行本文示例,體會(huì)路徑調(diào)用的具體用法。

相關(guān)文章

最新評(píng)論