用户
 找回密码
 入住 CI 中国社区
搜索
查看: 1975|回复: 2
收起左侧

[HELP] ci 载入框架集示图不显示呢?

[复制链接]
发表于 2011-12-5 13:55:22 | 显示全部楼层 |阅读模式
在坛子上看过这类问题都没有一个好的解决办法,根本无没显示框架集,求懂的帮助一下!你们是怎么解决的???
控制内容:
function index()
{
        $this->load->view('admin/index');//框架页示图
    }
    function top() {
        $this->load->view('admin/top');//top
    }
    function menu() {
        $this->load->view('admin/menu');//menu
    }
    function main() {
        $this->load->view('admin/main');
    }
    function bottom() {
        $this->load->view('admin/bottom');
    }
示图:admin/index.php
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>111111111111111</title>
</head>
<frameset rows="60,*,27" frameborder="no" border="1" framespacing="0">
<frame src="<?php echo site_url("Welcome/top");?>" name="topFrame" scrolling="no">
<frameset rows="*" cols="0,*" name="ecc" framespacing="0" frameborder="no" border="1">
<frame src="<?php echo site_url("Welcome/menu");?>" name="mainFrame" border="0" scrolling="no">
<frame src="<?php echo site_url("Welcome/main");?>" name="rightFrame" scrolling="auto">
</frameset>
<frame src="<?php echo site_url("Welcome/bottom");?>" name="bottomFrame" scrolling="no">
</frameset>
<noframes>
<body>
skdljsldjslkdjskldjjjjjjjjjjjjjj
</body>
</noframes>
</html>

 楼主| 发表于 2011-12-5 14:10:54 | 显示全部楼层
运行后只有<title></title>部分显示了,下面的框架没有显
显示源文件如下:看了一下也没有发现错误啊,用方法调用示图

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>111111111111111</title>
</head>
<frameset rows="60,*,27" frameborder="no" border="1" framespacing="0">
<frame src="http://127.0.0.1/index.php/Welcome/top" name="topFrame" scrolling="no">
<frameset rows="*" cols="0,*" name="ecc" framespacing="0" frameborder="no" border="1">
<frame src="http://127.0.0.1/index.php/Welcome/menu" name="mainFrame" border="0" scrolling="no">
<frame src="http://127.0.0.1/index.php/Welcome/main" name="rightFrame" scrolling="auto">
</frameset>
<frame src="http://127.0.0.1/index.php/Welcome/bottom" name="bottomFrame" scrolling="no">
</frameset>
<noframes>
<body>
        skdljsldjslkdjskldjjjjjjjjjjjjjj
</body>
</noframes>
</html>
 楼主| 发表于 2011-12-5 14:43:38 | 显示全部楼层
晕了解决了,原来我写代码用的是UltraEdit-32保存格式是utf-8
换成Zend Development Environment,就看出问题了,编码的问题:UltraEdit-32的utf-8 是bom,Zend Development Environment写就对了,不会有问题我晕了

本版积分规则