[0] HttpException in helper.php line 540

  1. * @param integer|Response $code 状态码 或者 Response对象实例
  2. * @param string $message 错误信息
  3. * @param array $header 参数
  4. */
  5. function abort($code, $message = null, $header = [])
  6. {
  7. if ($code instanceof Response) {
  8. throw new HttpResponseException($code);
  9. } else {
  10. throw new HttpException($code, $message, null, $header);
  11. }
  12. }
  13. }
  14. if (!function_exists('halt')) {
  15. /**
  16. * 调试变量并且中断输出
  17. * @param mixed $var 调试变量或者信息
  18. */