bst2222全球奢华游戏_VIP认证_官方登陆

[8] ErrorException in Theory.php line 15

未定义数组索引: topid

  1. class Theory extends Com{
  2. public function _initialize(){
  3. parent::_initialize();
  4. $cid = Request::instance()->param("cid");
  5. if(!$cid){
  6. $cid = 116;
  7. }
  8. $this_chanel= Db::name("channel")->find($cid);
  9. $this_chanel['top_name'] = Db::name("channel")->where('id',$this_chanel['topid'])->value("cname");
  10. $this->assign("nei_nav",nav2($this_chanel['topid']));
  11. $this->assign("channel",$this_chanel);
  12. }
  13. function law(){
  14. $cid = Request::instance()->param("cid");
  15. if($cid){
  16. $news = Db::name("mk_news")->where("cid",$cid)->field("nid,title,pic,des,time")->order("nid desc")->paginate(10);
  17. $this->assign("news",$news);
  18. return $this->fetch("index/theory_law");

Call Stack

  1. in Theory.php line 15
  2. at Error::appError(8, 'Undefined index: top...', '/filedata/zc_new/app...', 15, ['cid' => 'www.baidu.com', 'this_chanel' => ['top_name' => null]]) in Theory.php line 15
  3. at Theory->_initialize() in Controller.php line 59
  4. at Controller->__construct(object(Request))
  5. at ReflectionClass->newInstanceArgs([object(Request)]) in App.php line 359
  6. at App::invokeClass('app\index\controller...') in Loader.php line 479
  7. at Loader::controller('theory', 'controller', false, 'Error') in App.php line 581
  8. at App::module(['index', 'Theory', 'train'], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...], null) in App.php line 457
  9. at App::exec(['type' => 'module', 'module' => ['index', 'Theory', 'train']], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...]) in App.php line 139
  10. at App::run() in start.php line 19
  11. at require('/filedata/zc_new/thi...') in index.php line 16

Environment Variables

GET Data
empty
POST Data
empty
Files
empty
Cookies
empty
Session
empty

Server/Request Data

USER
apache
HOME
/var/www
FCGI_ROLE
RESPONDER
SCRIPT_FILENAME
/filedata/zc_new/public/index.php
QUERY_STRING
s=//index/Theory/train/cid/www.baidu.com
REQUEST_METHOD
GET
CONTENT_TYPE
CONTENT_LENGTH
SCRIPT_NAME
/index.php
REQUEST_URI
/index/Theory/train/cid/www.baidu.com
DOCUMENT_URI
/index.php
DOCUMENT_ROOT
/filedata/zc_new/public
SERVER_PROTOCOL
HTTP/1.1
GATEWAY_INTERFACE
CGI/1.1
SERVER_SOFTWARE
nginx/1.12.2
REMOTE_ADDR
104.253.131.2
REMOTE_PORT
41152
SERVER_ADDR
172.19.225.70
SERVER_PORT
80
SERVER_NAME
www.hppstore.com
REDIRECT_STATUS
200
HTTP_USER_AGENT
Mozilla/5.0 (Linux; Android 7.0;) AppleWebKit/537.36 (KHTML, like Gecko) Mobile Safari/537.36 (compatible; PetalBot;+https://webmaster.petalsearch.com/site/petalbot)
HTTP_HOST
www.hppstore.com
HTTP_ACCEPT
*/*
HTTP_ACCEPT_ENCODING
gzip
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1730518318.2966
REQUEST_TIME
1730518318
PATH_INFO
//index/Theory/train/cid/www.baidu.com
Environment Variables
empty

ThinkPHP Constants

APP_PATH
/filedata/zc_new/public/../application/
THINK_VERSION
5.0.24
THINK_START_TIME
1730518318.2968
THINK_START_MEM
232904
EXT
.php
DS
/
THINK_PATH
/filedata/zc_new/thinkphp/
LIB_PATH
/filedata/zc_new/thinkphp/library/
CORE_PATH
/filedata/zc_new/thinkphp/library/think/
TRAIT_PATH
/filedata/zc_new/thinkphp/library/traits/
ROOT_PATH
/filedata/zc_new/
EXTEND_PATH
/filedata/zc_new/extend/
VENDOR_PATH
/filedata/zc_new/vendor/
RUNTIME_PATH
/filedata/zc_new/runtime/
LOG_PATH
/filedata/zc_new/runtime/log/
CACHE_PATH
/filedata/zc_new/runtime/cache/
TEMP_PATH
/filedata/zc_new/runtime/temp/
CONF_PATH
/filedata/zc_new/public/../application/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false
Baidu
sogou