* @param integer|Response $code 状态码 或者 Response对象实例
* @param string $message 错误信息
* @param array $header 参数
*/
function abort($code, $message = null, $header = [])
{
if ($code instanceof Response) {
throw new HttpResponseException($code);
} else {
throw new HttpException($code, $message, null, $header);
}
}
}
if (!function_exists('action')) {
/**
* 调用模块的操作方法 参数格式 [模块/控制器/]操作
* @param string $url 调用地址
* @param string|array $vars 调用参数 支持字符串和数组
PHPSESSID | pefaho0vnkpibf64qc6gld1hkv |
USER | www |
HOME | /home/www |
SCRIPT_NAME | /index.php |
REQUEST_URI | /case/appraisal |
QUERY_STRING | |
REQUEST_METHOD | GET |
SERVER_PROTOCOL | HTTP/1.1 |
GATEWAY_INTERFACE | CGI/1.1 |
REDIRECT_URL | /case/appraisal |
REMOTE_PORT | 36836 |
SCRIPT_FILENAME | /SaData/www/wwwroot/www.sc-cx.com_current/public/index.php |
SERVER_ADMIN | webmaster@example.com |
CONTEXT_DOCUMENT_ROOT | /SaData/www/wwwroot/www.sc-cx.com_current/public |
CONTEXT_PREFIX | |
REQUEST_SCHEME | https |
DOCUMENT_ROOT | /SaData/www/wwwroot/www.sc-cx.com_current/public |
REMOTE_ADDR | 173.232.241.114 |
SERVER_PORT | 443 |
SERVER_ADDR | 172.24.252.8 |
SERVER_NAME | www.sc-cx.com |
SERVER_SOFTWARE | Apache |
SERVER_SIGNATURE | Apache Server at www.sc-cx.com Port 443 |
LD_LIBRARY_PATH | /www/server/apache/lib |
PATH | /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin |
HTTP_COOKIE | PHPSESSID=pefaho0vnkpibf64qc6gld1hkv |
HTTP_ACCEPT_ENCODING | gzip |
HTTP_ACCEPT | */* |
HTTP_HOST | www.sc-cx.com |
HTTP_USER_AGENT | Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; Trident/5.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; InfoPath.2; .NET4.0C; .NET4.0E; Tablet PC 2.0; BOIE9;ZHCN) |
proxy-nokeepalive | 1 |
SSL_TLS_SNI | www.sc-cx.com |
HTTPS | on |
REDIRECT_STATUS | 200 |
REDIRECT_SSL_TLS_SNI | www.sc-cx.com |
REDIRECT_HTTPS | on |
REDIRECT_PATH_INFO | case/appraisal |
FCGI_ROLE | RESPONDER |
PHP_SELF | /index.php |
REQUEST_TIME_FLOAT | 1715444061.2827 |
REQUEST_TIME | 1715444061 |
MAX_MENU_LENGTH | 3 |
MAX_SUB_MENU_LENGTH | 5 |
MODULE_NAME | home |
ACTION_NAME | index |