|
我按照说明做了以下配置:
1.打开文件 application/config/routes.php
设置$route['scaffolding_trigger'] = 'scaffolding';
2. 在控制器中新建一个名为blog.php的文件,代码如下:
<?php
class Blog extends CI_Controller {
function _Blog()
{
parent::CI_Controller();
$this->load->scaffolding('entries'); //我的表名为entries
}
}
?>
3.我的数据库配置文件已经配置好了,另 $autoload['libraries'] = array('database')也已设置;
4.输入http://localhost/Item/index.php/blog/scaffolding/ 后提示:
404 Page Not Found
The page you requested was not found.
不知道问题出在哪里?
|
|