Error.php 586 B

123456789101112131415161718192021222324252627282930
  1. <?php
  2. /**
  3. * @copyright Copyright (c) 2017 https://www.sapixx.com All rights reserved.
  4. * @license Licensed (http://www.apache.org/licenses/LICENSE-2.0).
  5. * @author pillar<ltmn@qq.com>
  6. * 空控制器访问跳转
  7. */
  8. namespace app\system\controller;
  9. use think\facade\Request;
  10. class Error{
  11. /**
  12. * 空控制器
  13. *
  14. * @return void
  15. */
  16. public function index(){
  17. return redirect(Request::root(true));
  18. }
  19. /**
  20. * 空方法
  21. *
  22. * @return void
  23. */
  24. public function _empty(){
  25. return redirect(Request::root(true));
  26. }
  27. }