500错误就是服务器内部错误。解决方法:可以登陆服务器找到“php.ini”配置文件,查找到“display_errors”把后面的off修改成on保存上传到服务器后,重启php服...
首先开启 web/index.php defined('YII_DEBUG') or define('YII_DEBUG', true); ...
1、创建ErrorHandler,继承这个yii\base\ErrorHandler抽象类,然后定义这个父类中的抽象方法<?phpnamespace common\compo...
1、首先开启web/index.php defined('YII_DEBUG') or define('YII_DEBUG', true);...