How to solve this?
//创建用户自定义类的加载方法 public function userAutoLoad($className) { //定义基本类的列表 $baseClass = [ 'Model' => './framework/Model.php', 'Db' => './framework/Db.php', ]; //依次进行判断:基础类?模型类?控制器类? if(isset($baseClass[$className])){ require $baseClass[$className]; //加载模型基类 }elseif(substr($className,-5)=='Model'){ require './application/home/model/'.$className.'.php'; //加载自定义模型基类 }elseif(substr($className,-10)=='Controller'){ require './application/home/controller/'.$className.'.php'; //加载自定义模型类 } }