//获得当前图文所属的栏目信息
$articleCate = DB::name('DataArticleCate')->where(["id" => $catId])->find(); //分类信息
$this->assign('catInfo', $articleCate); //当前分类信息
if (empty($articleCate['link_name'])) {
$articleCate['link_name'] = "List";
}
$this->assign('linkName', $articleCate['link_name']); //当前分类的静态名称
$templateInfo = DB::name('DataTemplate')->where(["id" => $articleCate['template_id']])->find(); //分类模板信息
$contentTemplateInfo = DB::name('DataTemplate')->where(["id" => $articleCate['content_template_id']])->find(); //内容模板信息
if (!$contentTemplateInfo['table_name']) {
return $this->fetch("error_page");
exit;
}
//获得当前图文信息
$article = Db::name($contentTemplateInfo['table_name'])->where('id', $id)->find();
ssid | e22fda272409d62d2a708fa0e335993e |
lang | zh-cn |
PHPSESSID | jpmeoqcbn1i0f7s6ce7ntg28d7 |
lang | cn |
USER | www |
HOME | /home/www |
HTTP_COOKIE | ssid=e22fda272409d62d2a708fa0e335993e; lang=zh-cn; PHPSESSID=jpmeoqcbn1i0f7s6ce7ntg28d7 |
HTTP_ACCEPT_ENCODING | gzip |
HTTP_ACCEPT | */* |
HTTP_HOST | www.sewhome.com |
HTTP_USER_AGENT | Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com) |
PATH_INFO | |
REDIRECT_STATUS | 200 |
SERVER_NAME | sewhome.com |
SERVER_PORT | 80 |
SERVER_ADDR | 172.26.35.20 |
REMOTE_PORT | 45590 |
REMOTE_ADDR | 170.130.206.126 |
SERVER_SOFTWARE | nginx/1.22.1 |
GATEWAY_INTERFACE | CGI/1.1 |
REQUEST_SCHEME | http |
SERVER_PROTOCOL | HTTP/1.1 |
DOCUMENT_ROOT | /www/wwwroot/sewhome.com |
DOCUMENT_URI | /index.php |
REQUEST_URI | /index/Article/show/cat_id/56/id/33 |
SCRIPT_NAME | /index.php |
CONTENT_LENGTH | |
CONTENT_TYPE | |
REQUEST_METHOD | GET |
QUERY_STRING | s=/index/Article/show/cat_id/56/id/33 |
SCRIPT_FILENAME | /www/wwwroot/sewhome.com/index.php |
FCGI_ROLE | RESPONDER |
PHP_SELF | /index.php |
REQUEST_TIME_FLOAT | 1735235673.9561 |
REQUEST_TIME | 1735235673 |