public function fetch($template, $data = [], $config = [])
{
if ('' == pathinfo($template, PATHINFO_EXTENSION)) {
// 獲取模板文件名
$template = $this->parseTemplate($template);
}
// 模板不存在 抛出异常
if (!is_file($template)) {
throw new TemplateNotFoundException('template not exists:' . $template, $template);
}
// 記錄视图資訊
$this->app
->log('[ VIEW ] ' . $template . ' [ ' . var_export(array_keys($data), true) . ' ]');
$this->template->fetch($template, $data, $config);
}
Objtype | 1313 |
USER | www |
HOME | /home/www |
HTTP_REFERER | http://www.rrgs.com.tw/big/DisProduct.aspx?Objtype=1313 |
HTTP_USER_AGENT | claudebot |
HTTP_ACCEPT | */* |
HTTP_HOST | www.rrgs.com.tw |
PATH_INFO | |
REDIRECT_STATUS | 200 |
SERVER_NAME | www.rrgs.com.tw |
SERVER_PORT | 443 |
SERVER_ADDR | 61.216.114.57 |
REMOTE_PORT | 38658 |
REMOTE_ADDR | 54.147.102.111 |
SERVER_SOFTWARE | nginx/1.22.1 |
GATEWAY_INTERFACE | CGI/1.1 |
HTTPS | on |
REQUEST_SCHEME | https |
SERVER_PROTOCOL | HTTP/2.0 |
DOCUMENT_ROOT | /www/wwwroot/www.rrgs.com.tw |
DOCUMENT_URI | /index.php |
REQUEST_URI | /big/DisProduct.aspx?Objtype=1313 |
SCRIPT_NAME | /index.php |
CONTENT_LENGTH | |
CONTENT_TYPE | |
REQUEST_METHOD | GET |
QUERY_STRING | s=/big/DisProduct.aspx&Objtype=1313 |
SCRIPT_FILENAME | /www/wwwroot/www.rrgs.com.tw/index.php |
FCGI_ROLE | RESPONDER |
PHP_SELF | /index.php |
REQUEST_TIME_FLOAT | 1711703458.8771 |
REQUEST_TIME | 1711703458 |
APP_PATH | /www/wwwroot/www.rrgs.com.tw/app/ |
START_TIME | 07:00 |
END_TIME | 19:00 |
__EDITION__ | v1.0.1 |
__ADMIN__ | /public/admin |
__INDEX__ | /public/index |
__PULOADS__ | /public/data/uploads |
__XLXS__ | /public/data/excel |
ROOT_PATH | /www/wwwroot/www.rrgs.com.tw |