$info = DocumentModel::getOne($id, $model, $map);
if (isset($info['tags'])) {
$info['tags'] = explode(',', $info['tags']);
}
$this->assign('document', $info);
$this->assign('model', $model);
$this->assign('related', $this->getRelated($info['cid'],$model));
$this->assign('breadcrumb', $this->getBreadcrumb($info['cid']));
$this->assign('prev', $this->getPrev($id, $model));
$this->assign('next', $this->getNext($id, $model));
$template = $info['detail_template'] == '' ? 'detail' : substr($info['detail_template'], 0, strpos($info['detail_template'], '.'));
if (is_mobile_visit()) {
return $this->fetch('/wap/document/'.$template); // 渲染模板
}else{
return $this->fetch($template);
dolphin_think_var | en-us |
b_ | { "lang": "en" } |
USER | www |
HOME | /home/www |
HTTP_CF_IPCOUNTRY | US |
HTTP_CDN_LOOP | cloudflare |
HTTP_CF_CONNECTING_IP | 54.234.184.8 |
HTTP_USER_AGENT | claudebot |
HTTP_ACCEPT | */* |
HTTP_CF_VISITOR | {"scheme":"https"} |
HTTP_X_FORWARDED_PROTO | https |
HTTP_CF_RAY | 86c07aa3dad02046-IAD |
HTTP_X_FORWARDED_FOR | 54.234.184.8 |
HTTP_ACCEPT_ENCODING | gzip, br |
HTTP_CONNECTION | Keep-Alive |
HTTP_HOST | brgproduct.com |
PATH_INFO | |
REDIRECT_STATUS | 200 |
SERVER_NAME | brgproduct.com |
SERVER_PORT | 80 |
SERVER_ADDR | 153.126.194.39 |
REMOTE_PORT | 43036 |
REMOTE_ADDR | 172.71.223.14 |
SERVER_SOFTWARE | nginx/1.21.4 |
GATEWAY_INTERFACE | CGI/1.1 |
REQUEST_SCHEME | http |
SERVER_PROTOCOL | HTTP/1.1 |
DOCUMENT_ROOT | /www/wwwroot/brgproduct.com/www/public |
DOCUMENT_URI | /index.php |
REQUEST_URI | /cms/document/detail/id/220/model/2.html |
SCRIPT_NAME | /index.php |
CONTENT_LENGTH | |
CONTENT_TYPE | |
REQUEST_METHOD | GET |
QUERY_STRING | s=/cms/document/detail/id/220/model/2.html |
SCRIPT_FILENAME | /www/wwwroot/brgproduct.com/www/public/index.php |
FCGI_ROLE | RESPONDER |
PHP_SELF | /index.php |
REQUEST_TIME_FLOAT | 1711721800.5807 |
REQUEST_TIME | 1711721800 |
ADMIN_FILE | admin.php |
__MODULE_PIC__ | /static/cms/picture |
HTMLPURIFIER_PREFIX | /www/wwwroot/brgproduct.com/www/vendor/ezyang/htmlpurifier/library |
PUBLIC_PATH | / |