|
刚使用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
|
|