[8] ErrorException in Cate.php line 53

未定义变量: cate_tmp

  1. //单页
  2. $cate_tmp=$cate_info['index_tmp'];
  3. $info=db('cate')->find($id);
  4. $this->assign(['info'=>$info]);
  5. }
  6. //自定义留言板(订制)
  7. $list_msg=$this->get_msg(1);
  8. $this->assign(['list_msg'=>$list_msg]);
  9. //$this->temp_url是自定义模板文件夹名称
  10. $tmp_url=$this->temp_url.'/'.$cate_tmp;
  11. // dump($tmp_url);exit;
  12. return $this->fetch($tmp_url);
  13. }
  14. //得到所有的本顶级分类下的所有分类
  15. public function get_left_cate($id){
  16. static $arr=array();
  17. $data=db('cate')->where('pid',$id)->select();
  18. foreach ($data as $k => $v) {
  19. if($v['pid']==$id){

Call Stack

  1. in Cate.php line 53
  2. at Error::appError(8, 'Undefined variable: ...', '/www/wwwroot/cspccom...', 53, ['id' => '53', 'cate_info' => null, 'cate_top_id' => null, ...]) in Cate.php line 53
  3. at Cate->index('53')
  4. at ReflectionMethod->invokeArgs(object(Cate), ['53']) in Container.php line 395
  5. at Container->invokeReflectMethod(object(Cate), object(ReflectionMethod), ['id' => '53', 'convert' => false]) in Module.php line 132
  6. at Module->think\route\dispatch\{closure}(object(Request), object(Closure), null)
  7. at call_user_func_array(object(Closure), [object(Request), object(Closure), null]) in Middleware.php line 185
  8. at Middleware->think\{closure}(object(Request))
  9. at call_user_func(object(Closure), object(Request)) in Middleware.php line 130
  10. at Middleware->dispatch(object(Request), 'controller') in Module.php line 137
  11. at Module->exec() in Dispatch.php line 168
  12. at Dispatch->run() in App.php line 432
  13. at App->think\{closure}(object(Request), object(Closure), null)
  14. at call_user_func_array(object(Closure), [object(Request), object(Closure), null]) in Middleware.php line 185
  15. at Middleware->think\{closure}(object(Request))
  16. at call_user_func(object(Closure), object(Request)) in Middleware.php line 130
  17. at Middleware->dispatch(object(Request)) in App.php line 435
  18. at App->run() in index.php line 21

Environment Variables

GET Dataempty
POST Dataempty
Filesempty
Cookiesempty
Sessionempty
Server/Request Data
USER www
HOME /home/www
SCRIPT_NAME /index.php
REQUEST_URI /cate/id/53.html
QUERY_STRING s=/cate/id/53.html
REQUEST_METHOD GET
SERVER_PROTOCOL HTTP/1.1
GATEWAY_INTERFACE CGI/1.1
REDIRECT_QUERY_STRING s=/cate/id/53.html
REDIRECT_URL /cate/id/53.html
REMOTE_PORT 20000
SCRIPT_FILENAME /www/wwwroot/cspccom/public/index.php
SERVER_ADMIN webmaster@example.com
CONTEXT_DOCUMENT_ROOT /www/wwwroot/cspccom/public
CONTEXT_PREFIX
REQUEST_SCHEME http
DOCUMENT_ROOT /www/wwwroot/cspccom/public
REMOTE_ADDR 23.104.21.12
SERVER_PORT 80
SERVER_ADDR 172.16.10.101
SERVER_NAME www.e-cspc.com
SERVER_SOFTWARE Apache
SERVER_SIGNATURE <address>Apache Server at www.e-cspc.com Port 80</address>
LD_LIBRARY_PATH /www/server/apache/lib
PATH /bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/root/bin
HTTP_ACCEPT_ENCODING deflate, gzip
HTTP_ACCEPT */*
HTTP_HOST www.e-cspc.com
HTTP_USER_AGENT Mozilla/5.0+(compatible;+Baiduspider/2.0;++http://www.baidu.com/search/spider.html)
proxy-nokeepalive 1
REDIRECT_STATUS 200
FCGI_ROLE RESPONDER
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1579749573.9441
REQUEST_TIME 1579749573
Environment Variablesempty
ThinkPHP Constantsempty