大家好,又见面了,我是全栈君。
i have created a controller menus.php which extends basecontroller as follows
<?php
class Menus extends BaseController {
function __construct()
{
parent::__construct();
}
}
?>
and BaseController.php in application/core folder as follows
<?php
class BaseController extends CI_Controller {
function __construct()
{
parent::__construct();
}
}
?>
I m getting error as Fatal error: Class ‘BaseController’ not found in
The class file name must begin with “MY_” unless you’ve changed it in config.php.
$config['subclass_prefix'] = 'MY_';
https://ellislab.com/codeIgniter/user-guide/general/core_classes.html
修改config.php文件中$config[‘subclass_prefix’] = ‘MY_’; 这个配置就OK
https://stackoverflow.com/questions/33431597/class-basecontroller-not-found
发布者:全栈程序员-用户IM,转载请注明出处:https://javaforall.cn/111620.html原文链接:https://javaforall.cn
【正版授权,激活自己账号】: Jetbrains全家桶Ide使用,1年售后保障,每天仅需1毛
【官方授权 正版激活】: 官方授权 正版激活 支持Jetbrains家族下所有IDE 使用个人JB账号...