thinkphp打不开frameset框架页面?急死了,大神来看看啊

浏览:1782 发布日期:2015/09/08 分类:求助交流
html的代码<html>
<head>
<title>后台管理页面</title>
</head>
<frameset rows="20%,80%">
    <frame src="__URL__/top" name="top" >
    <frameset cols="15%,*">
        <frame src="__URL__/left" name="left" >
        <frame src="__URL__/right" name="right" >
    </frameset>
</frameset>
<noframes>
<body>
<p>此页面使用了框架,您的浏览器不支持,请更换最新浏览器!</p>
</body>
</noframes>
</html>
控制器代码<?php
// 本类由系统自动生成,仅供测试用途
class IndexAction extends Action {
    public function admin(){
        if(isset($_COOKIE['username']) && $_COOKIE['username']!=''){
            $this->display();
        }else{
            $this->error('非法登录','HTTP://localhost');
        }
        
    }
    public function top(){
        $this->display();
    }
    public function left(){
        $this->display();
    }
    public function right(){
        $this->display();
    }
}
html框架的代码使用浏览器直接打开可以显示,为什么通过localhost/admin.php/Index/admin却不显示页面?只是空白页面,title标题都出来了,为什么框架出不来??
最佳答案
评论( 相关
后面还有条评论,点击查看>>