forkc 发表于 2012-12-27 17:49:22

问个问题,大侠们请进

刚使用CI,想用它做个系统。

最简单的左右分栏,左边是导航,右边是具体内容。
所以我写了
---------------------------------------------------------------------------------
分栏页:/view/report/index.php

<frame src="<?php echo site_url('report/navigation');?>"/>
<frame src="<?php echo site_url('report/content');?>" name="showframe"/>

<noframes>
<body>your brower not support framework.</body>
</noframes>
</frameset>

分栏页1:/view/report/navigation.php
this is navigation page.
分栏页2:/view/report/content.php
this is content page.
---------------------------------------------------------------------------------
控制器:/controllers/report.php
<?php
class Report extends CI_Controller {

    public function __construct()
    {
      parent::__construct();
      //$this->load->model('report_model');
    }

    public function index()
    {
      $this->load->view('report/index');
    }
}
?>
---------------------------------------------------------------------------------
配置文件:/config/routes.php
$route['default_controller'] = "report";
$route['404_override'] = '';
---------------------------------------------------------------------------------
显示白板 -_-bb



forkc 发表于 2012-12-27 18:29:17

人真少。。。。。。。。。。。

forkc 发表于 2012-12-27 20:01:26

找到原因了,缺少$this->load->helper('url');
页: [1]
查看完整版本: 问个问题,大侠们请进