qy88.vip千嬴国际手机登录

[8] ErrorException in Select.phphtml line 18

未定义数组索引: select

  1. namespace app\index\controller;
  2. use app\index\model\News;
  3. use think\Db;
  4. class Select extends BaseadController
  5. {
  6. public function index(){
  7. $a=request()->param();
  8. $where['title']=['like',"%".$a['select']."%"];
  9. $where['is_show']=['=',1];
  10. $where['cat_id']=['in','1,2,3,4,5'];
  11. // $whereOr['content']=['like',"%".$a['select']."%"];
  12. $se=(new News())->where($where)->order('news_id desc')->paginate(6,false,['query'=>request()->param() ]);
  13. $page = $se->render();
  14. $this->assign('page',$page);
  15. $count=(new News())->where($where)->where('is_show','=',1)->order('add_time desc')->count();
  16. $this->assign('sele',$a['select']);
  17. $this->assign('count',$count);

Call Stack

  1. in Select.phphtml line 18
  2. at Error::appError(8, 'Undefined index: sel...', 'D:\wamp\www\cs\appli...', 18, ['a' => []]) in Select.phphtml line 18
  3. at Select->index()
  4. at ReflectionMethod->invokeArgs(object(Select), []) in App.phphtml line 343
  5. at App::invokeMethod([object(Select), 'index'], []) in App.phphtml line 599
  6. at App::module(['index', 'Select', 'index'], ['app_host' => '', 'app_debug' =>true, 'app_trace' =>false, ...], null) in App.phphtml line 457
  7. at App::exec(['type' => 'module', 'module' => ['index', 'Select', 'index']], ['app_host' => '', 'app_debug' =>true, 'app_trace' =>false, ...]) in App.phphtml line 139
  8. at App::run() in start.phphtml line 19
  9. at require('D:\wamp\www\cs\think...') in index.phphtml line 24

Environment Variables

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

Server/Request Data

REDIRECT_STATUS
200
HTTP_HOST
www.aifenghuishou.com
HTTP_ACCEPT
*/*
HTTP_USER_AGENT
Mozilla/5.0 (compatible; Baiduspider/2.0; +http://www.baidu.com/search/spider.html)
PATH
C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\VisualSVN Server\bin;C:\Windows\System32\WindowsPowerShell\v1.0\;
SystemRoot
C:\Windows
COMSPEC
C:\Windows\system32\cmd.exe
PATHEXT
.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
WINDIR
C:\Windows
SERVER_SIGNATURE
<address>Apache/2.4.9 (Win64) PHP/5.6.36 Server at www.aifenghuishou.com Port 80</address>
SERVER_SOFTWARE
Apache/2.4.9 (Win64) PHP/5.6.36
SERVER_NAME
www.aifenghuishou.com
SERVER_ADDR
172.17.238.242
SERVER_PORT
80
REMOTE_ADDR
104.216.144.169
DOCUMENT_ROOT
D:/wamp/www/cs/public
REQUEST_SCHEME
http
CONTEXT_PREFIX
CONTEXT_DOCUMENT_ROOT
D:/wamp/www/cs/public
SERVER_ADMIN
admin@example.com
SCRIPT_FILENAME
D:/wamp/www/cs/public/index.phphtml
REMOTE_PORT
36585
REDIRECT_URL
/index/Select/index.html
GATEWAY_INTERFACE
CGI/1.1
SERVER_PROTOCOL
HTTP/1.1
REQUEST_METHOD
GET
QUERY_STRING
REQUEST_URI
/index/Select/index.html
SCRIPT_NAME
/index.phphtml
PATH_INFO
/index/Select/index.html
PATH_TRANSLATED
redirect:\index.phphtml\index\Select\index.html\index.html
PHP_SELF
/index.phphtml/index/Select/index.html
REQUEST_TIME_FLOAT
1597236545.434
REQUEST_TIME
1597236545
Environment Variables
empty

ThinkPHP Constants

APP_PATH
D:\wamp\www\cs\public/../application/
EXTEND_PATH
D:\wamp\www\cs\public/../extend/
THINK_VERSION
5.0.15
THINK_START_TIME
1597236545.4347
THINK_START_MEM
263576
EXT
.phphtml
DS
\
THINK_PATH
D:\wamp\www\cs\thinkphp\
LIB_PATH
D:\wamp\www\cs\thinkphp\library\
CORE_PATH
D:\wamp\www\cs\thinkphp\library\think\
TRAIT_PATH
D:\wamp\www\cs\thinkphp\library\traits\
ROOT_PATH
D:\wamp\www\cs\
VENDOR_PATH
D:\wamp\www\cs\vendor\
RUNTIME_PATH
D:\wamp\www\cs\runtime\
LOG_PATH
D:\wamp\www\cs\runtime\log\
CACHE_PATH
D:\wamp\www\cs\runtime\cache\
TEMP_PATH
D:\wamp\www\cs\runtime\temp\
CONF_PATH
D:\wamp\www\cs\public/../application/
CONF_EXT
.phphtml
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
true
万博体育亚洲官网必威体育app网站龙8国际手机版下载