|
我在routes.php里面$route['default_controller'] = "index";
cntroller里面的index.php写
<?php
class Index extends CI_Controller {
public function index()
{
$this->load->view('index/index');
}
}
view里面都有对应的文件,访问时候就有下面错误:
A PHP Error was encounteredSeverity: Notice
Message: Undefined property: Index:load
Filename: controllers/index.php
Line Number: 6
Fatal error: Call to a member function view() on a non-object in D:\Code\ci\a\controllers\index.php on line 6
如果都把对应的index改为home的话就没有错误,请问这是什么问题?
|
|