|
发表于 2012-7-18 20:01:09
|
显示全部楼层
PHP复制代码 require BASEPATH .'core/Controller.php';
function &get_instance ()
{
return CI_Controller ::get_instance();
}
if (file_exists(APPPATH .'core/'.$CFG->config['subclass_prefix'].'Controller.php'))
{
require APPPATH .'core/'.$CFG->config['subclass_prefix'].'Controller.php';
} 复制代码
CodeIgniter.php可以根据你的需求修改名字,不一定非要MY_Controller.php
|
|