$id = input('id');
db('zx_content')->where(array('id' => $id))->setInc('hits', 1);
$info = db('zx_content')->where(array('id' => $id))->find();
$this->info = $info;
$breadCrumbs = $this->breadCrumbs($info['cate_id']);
$key = array_search('0', array_column($breadCrumbs, 'pid'));
//var_dump($breadCrumbs[$key]);
$this->pid = $breadCrumbs[$key]['id'];
//var_dump($this->pid);
$cate_info = db('zx_category')->where(array('id' => $this->pid))->find();
$this->title = $cate_info['title'];
// 上一条
$pre_info = Base::getPreNewsInfo( $id, $info['cate_id'] );
$this->pre_info = $pre_info;
id | 62 |
USER | www |
HOME | /home/www |
FCGI_ROLE | RESPONDER |
SCRIPT_FILENAME | /www/wwwroot/zhixinzx.com/index.php |
QUERY_STRING | s=/index/article/detail.html&id=62 |
REQUEST_METHOD | GET |
CONTENT_TYPE | |
CONTENT_LENGTH | |
SCRIPT_NAME | /index.php |
REQUEST_URI | /index/article/detail.html?id=62 |
DOCUMENT_URI | /index.php |
DOCUMENT_ROOT | /www/wwwroot/zhixinzx.com |
SERVER_PROTOCOL | HTTP/2.0 |
REQUEST_SCHEME | https |
HTTPS | on |
GATEWAY_INTERFACE | CGI/1.1 |
SERVER_SOFTWARE | nginx/1.20.2 |
REMOTE_ADDR | 18.207.163.25 |
REMOTE_PORT | 60006 |
SERVER_ADDR | 172.18.51.194 |
SERVER_PORT | 443 |
SERVER_NAME | zhixinzx.com |
REDIRECT_STATUS | 200 |
PATH_INFO | |
HTTP_HOST | www.zhixinzx.com |
HTTP_ACCEPT | */* |
HTTP_USER_AGENT | claudebot |
PHP_SELF | /index.php |
REQUEST_TIME_FLOAT | 1711693283.371 |
REQUEST_TIME | 1711693283 |
QINIU_FUNCTIONS_VERSION | 7.3.0 |