|
打开后只有一个文档标题,页面是空的
这个是控制器:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>首页</title>
</head>
<body>
<?php
class Home extends CI_controller
{
function home()
{
parent::__Construct();
$this->load->database();
$this->load->helper('url');
}
function index()
{
$this->load->view('home_view');
}
}
?>
</body>
</html>
这个是视图:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>首页</title>
</head>
<frameset rows="10%,90%" border="0">
<frame src="../htm/top.html" />
<frameset cols="15%,85%" border="10">
<frame src="../htm/left.html" />
<frame src="../htm/right.html" />
</frameset>
</frameset><noframes></noframes>
</html>
我把视图保存为网页后打开可以显示框架,怎么回事啊,烦请帮忙了。
|
|