Parse error: syntax error, unexpected 'list' (T_LIST), expecting identifier (T_STRING) in /www/wwwroot/hbcxzc.com/enpc/application/home/controller/Equipment.php on line 122

[4] ErrorException in Equipment.php line 122

语法错误: unexpected 'list' (T_LIST), expecting identifier (T_STRING)

  1. }
  2. //照片显示
  3. public function imgList() {
  4. //默认照片是第一级的所有照片
  5. $imgList = Db::name('news_class')->where('rid', 14)->where('class_id', in, '20')->select();
  6. $this->assign('imgList', $imgList);
  7. return $this->fetch('equipment/index');
  8. }
  9. //左侧列表二级分类
  10. public function list($id) {
  11. $equipment = Db::name('news')->where('rid', 14)->order('list_order desc')->select();
  12. //左侧列表一级分类
  13. $leftEq = Db::name('news_class')->where('rid', 14)->where('parent_id', 0)->select();
  14. //左侧列表二级分类
  15. foreach ($leftEq as $k => $v) {
  16. $leftEqSecond[] = Db::name('news_class')->where('rid', 14)->where('parent_id', $v['id'])->select();
  17. }
  18. $this->assign('leftEq', $leftEq);
  19. // halt($leftEq);

Call Stack

  1. in Equipment.php line 122
  2. at Error::appShutdown()

Environment Variables

GET Dataempty
POST Dataempty
Filesempty
Cookiesempty
Sessionempty
Server/Request Data
USER www
HOME /home/www
FCGI_ROLE RESPONDER
SCRIPT_FILENAME /www/wwwroot/hbcxzc.com/enpc/public/index.php
QUERY_STRING
REQUEST_METHOD GET
CONTENT_TYPE
CONTENT_LENGTH
SCRIPT_NAME /enpc/public/index.php
REQUEST_URI /enpc/public/index.php/home/equipment/adviser/sid/237/id/40.html
DOCUMENT_URI /enpc/public/index.php/home/equipment/adviser/sid/237/id/40.html
DOCUMENT_ROOT /www/wwwroot/hbcxzc.com
SERVER_PROTOCOL HTTP/1.1
REQUEST_SCHEME http
GATEWAY_INTERFACE CGI/1.1
SERVER_SOFTWARE nginx/1.22.1
REMOTE_ADDR 34.226.141.207
REMOTE_PORT 59356
SERVER_ADDR 192.168.2.88
SERVER_PORT 80
SERVER_NAME hbcxzc.com
REDIRECT_STATUS 200
PATH_INFO /home/equipment/adviser/sid/237/id/40.html
HTTP_ACCEPT */*
HTTP_USER_AGENT claudebot
HTTP_HOST hbcxzc.com
PHP_SELF /enpc/public/index.php/home/equipment/adviser/sid/237/id/40.html
REQUEST_TIME_FLOAT 1711620719.518
REQUEST_TIME 1711620719
Environment Variablesempty
ThinkPHP Constants
__PHYSICS__ /www/wwwroot/hbcxzc.com/enpc