在控制器里写显示各个view 的方法,例如,我的控制器名字是Welcome:

class Welcome extents Control
{
    function index() {
        $this->load->view('admin/index');
    }
    function top() {
        $this->load->view(’admin/top‘);
    }
    function menu() {
        $this->load->view(’admin/menu‘);
    }
    function main() {
        $this->load->view(’admin/main‘);
    }
    function bottom() {
        $this->load->view(’admin/bottom‘);
    }
}

admin/index.php内容:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">
<html><head><title> 在线目录后台 </title>
<meta http-equiv="Content-Type" c>
</head>
<frameset rows="60,*,27" frameborder="no" border="0" framespacing="0">
  <frame src="Welcome/top" name="topFrame" scrolling="no">
  <frameset rows="*" cols="0,*" name="ecc" framespacing="0" frameborder="no" border="0">
    <frame src="Welcome/menu" name="mainFrame" border="0" scrolling="no">
    <frame src="Welcome/main" name="rightFrame" scrolling="auto">
  </frameset>
  <frame src="Welcome/bottom" name="bottomFrame" scrolling="no">
</frameset>
</html>