[8] ErrorException in Goods.php line 89

未定义变量: title

  1. foreach($list as &$v){
  2. $v['couponmoney']=rtrim(rtrim($v['couponmoney'], '0'), '.');
  3. $v['itempic']=$v['itempic']."_310x310.jpg";
  4. $v['tkmoney']=number_format($v['tkmoney']*0.4,2);
  5. }
  6. $this->assign('GoodsList',$list);
  7. $this->assign('cateid',$cateid);
  8. $cates = Cate::where("pid=0")->order(['weigh', 'id'=>'asc'])->select();
  9. $this->assign('CategoryList',$cates);
  10. $this->assign('title',$title);
  11. return $this->view->fetch();
  12. }
  13. public function search(){
  14. $keyword=input('ks');
  15. if(!$keyword) $this->error ('请输入搜索的关键词');
  16. $keyword = urldecode(preg_replace('# #','',$keyword));
  17. $keyword=$this->replaceSpecialChar($keyword);
  18. $min_id=intval(input('min_id'));

Call Stack

  1. in Goods.php line 89
  2. at Error::appError() in Goods.php line 89
  3. at Goods->topic()
  4. at ReflectionMethod->invokeArgs() in App.php line 343
  5. at App::invokeMethod() in App.php line 611
  6. at App::module() in App.php line 456
  7. at App::exec() in App.php line 139
  8. at App::run() in start.php line 19
  9. at require('/www/wwwroot/www.cai...') in index.php line 24

Environment Variables

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

Server/Request Data

USER
www
HOME
/home/www
HTTP_HOST
www.caiyun123.cn
HTTP_USER_AGENT
claudebot
HTTP_ACCEPT
*/*
PATH_INFO
/home/goods/index/id/0/sortid/7.html
REDIRECT_STATUS
200
SERVER_NAME
www.caiyun123.cn
SERVER_PORT
80
SERVER_ADDR
172.16.224.102
REMOTE_PORT
36808
REMOTE_ADDR
3.88.60.5
SERVER_SOFTWARE
nginx/1.22.1
GATEWAY_INTERFACE
CGI/1.1
REQUEST_SCHEME
http
SERVER_PROTOCOL
HTTP/1.1
DOCUMENT_ROOT
/www/wwwroot/www.caiyun123.cn/public
DOCUMENT_URI
/index.php
REQUEST_URI
/home/goods/index/id/0/sortid/7.html
SCRIPT_NAME
/index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD
GET
QUERY_STRING
s=/home/goods/index/id/0/sortid/7.html
SCRIPT_FILENAME
/www/wwwroot/www.caiyun123.cn/public/index.php
FCGI_ROLE
RESPONDER
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1711626921.9895
REQUEST_TIME
1711626921
Environment Variables
empty

ThinkPHP Constants

APP_PATH
/www/wwwroot/www.caiyun123.cn/public/../application/
TOP_SDK_WORK_DIR
/tmp/
TOP_SDK_DEV_MODE
true
TOP_AUTOLOADER_PATH
/www/wwwroot/www.caiyun123.cn/extend/TopSdk
THINK_VERSION
5.0.24
THINK_START_TIME
1711626922.0425
THINK_START_MEM
420456
EXT
.php
DS
/
THINK_PATH
/www/wwwroot/www.caiyun123.cn/thinkphp/
LIB_PATH
/www/wwwroot/www.caiyun123.cn/thinkphp/library/
CORE_PATH
/www/wwwroot/www.caiyun123.cn/thinkphp/library/think/
TRAIT_PATH
/www/wwwroot/www.caiyun123.cn/thinkphp/library/traits/
ROOT_PATH
/www/wwwroot/www.caiyun123.cn/
EXTEND_PATH
/www/wwwroot/www.caiyun123.cn/extend/
VENDOR_PATH
/www/wwwroot/www.caiyun123.cn/vendor/
RUNTIME_PATH
/www/wwwroot/www.caiyun123.cn/runtime/
LOG_PATH
/www/wwwroot/www.caiyun123.cn/runtime/log/
CACHE_PATH
/www/wwwroot/www.caiyun123.cn/runtime/cache/
TEMP_PATH
/www/wwwroot/www.caiyun123.cn/runtime/temp/
CONF_PATH
/www/wwwroot/www.caiyun123.cn/public/../application/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false
FILTER_VALIDATE_BOOL
258
ADDON_PATH
/www/wwwroot/www.caiyun123.cn/addons/