YII2.0.12兼容PHP7.2版本升级 报错信息: FastCGI sent in stderr: "PHP message: PHP Fatal error: Cannot use ‘Object‘ as class name as it is reserved in /home/leo/htdocs/oa/vendor/yiisoft/yii2/base/Object.php on line 77 这个错误是yii2框架的错误了.也就是说不能使用Object作为类名. 解决方法 1.c…
在Yii2.0.6的时候我是在以下文件通过以下方法实现的. frontend/modules/user/Module.php namespace frontend\modules\user; class Module extends \yii\base\Module { public $controllerNamespace = 'frontend\modules\user\controllers'; public function init() { parent::init(); //该模块必…