thinkphp中include不起作用

浏览:5400 发布日期:2013/05/31 分类:求助交流 关键字: index,问题
class IndexAction extends Action {
public function index(){
if(isset($_SESSION['ad_name'])&& $_SESSION['ad_name']!=''){

$this->display('./admin/Tpl/Index/index.tpl');

}
else {
$this->redirect('./admin/Tpl/login/index');

}
}
public function admintop(){
$this->display('./admin/Tpl/Index/admin_top.tpl');
}

private function m(){
return D('Aduser');
}

}
在Tpl文件下的Index目录下有两个文件一个是index.tpl,和admin_top.tpl
但是在index.tpl下面用<include file="admintop" />无反应,也不报错,这是什么情况,其它的写法也试过也不行。
如果直接输出index/admintop又能打开,什么情况?
最佳答案
评论( 相关
后面还有条评论,点击查看>>