ErrorController.php 396 B

1234567891011121314151617181920212223242526
  1. <?php
  2. namespace backend\controllers;
  3. /**
  4. * 错误控制器
  5. * Class ErrorController
  6. * @package backend\controllers
  7. */
  8. class ErrorController extends BaseController
  9. {
  10. public $layout = false;
  11. /**
  12. * 动作设置
  13. * @author: libingke
  14. * @return array
  15. */
  16. public function actions()
  17. {
  18. return [
  19. 'error' => [
  20. 'class' => 'yii\web\ErrorAction',
  21. ]
  22. ];
  23. }
  24. }