[8] ErrorException in News.php line 28

未定义数组索引: id

  1. parent::_initialize(); // TODO: Change the autogenerated stub
  2. Session::set('dh','3');
  3. }
  4. public function index(){
  5. $this->p_info_list();
  6. return $this->fetch();
  7. }
  8. public function content(){
  9. $param = input('param.');
  10. $this->p_info($param['id']);
  11. return $this->fetch();
  12. }
  13. //public列表
  14. private function p_info_list(){
  15. $info = new model\InfoModel();
  16. $this->assign([
  17. 'info' => $info->get_all_info(2),
  18. ]);
  19. }

Call Stack

  1. in News.php line 28
  2. at Error::appError(8, 'Undefined index: id', '/www/wwwroot/yeda999...', 28, ['param' => ['/index/news/content/0/id/1/23_html' => '', 'id', '23']]) in News.php line 28
  3. at News->content()
  4. at ReflectionMethod->invokeArgs(object(News), []) in App.php line 343
  5. at App::invokeMethod([object(News), 'content'], []) in App.php line 611
  6. at App::module(['index', 'news', 'content'], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...], true) in App.php line 456
  7. at App::exec(['type' => 'module', 'module' => ['index', 'news', 'content']], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...]) in App.php line 139
  8. at App::run() in start.php line 19
  9. at require('/www/wwwroot/yeda999...') in index.php line 26

Environment Variables

GET Data

/index/news/content/0/id/1/23_html
POST Data
empty
Files
empty
Cookies
empty

Session

think
{ "dh": "3" }

Server/Request Data

USER
www
HOME
/home/www
SCRIPT_NAME
/index.php
REQUEST_URI
/index/news/content/0/id/1/23.html
QUERY_STRING
/index/news/content/0/id/1/23.html
REQUEST_METHOD
GET
SERVER_PROTOCOL
HTTP/2.0
GATEWAY_INTERFACE
CGI/1.1
REDIRECT_QUERY_STRING
/index/news/content/0/id/1/23.html
REDIRECT_URL
/index/news/content/0/id/1/23.html
REMOTE_PORT
47496
SCRIPT_FILENAME
/www/wwwroot/yeda999.net/public/index.php
SERVER_ADMIN
webmaster@example.com
CONTEXT_DOCUMENT_ROOT
/www/wwwroot/yeda999.net/public/
CONTEXT_PREFIX
REQUEST_SCHEME
https
DOCUMENT_ROOT
/www/wwwroot/yeda999.net/public/
REMOTE_ADDR
34.203.242.200
SERVER_PORT
443
SERVER_ADDR
173.242.117.57
SERVER_NAME
yeda999.net
SERVER_SOFTWARE
Apache
SERVER_SIGNATURE
<address>Apache Server at yeda999.net Port 443</address>
LD_LIBRARY_PATH
/www/server/apache/lib
PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin
HTTP_HOST
yeda999.net
HTTP_REFERER
http://yeda999.net/index/news/content/0/id/1/23.html
HTTP_USER_AGENT
claudebot
HTTP_ACCEPT
*/*
proxy-nokeepalive
1
H2_STREAM_TAG
194-3
H2_STREAM_ID
3
H2_PUSHED_ON
H2_PUSHED
H2_PUSH
off
H2PUSH
off
HTTP2
on
SSL_TLS_SNI
yeda999.net
HTTPS
on
REDIRECT_STATUS
200
REDIRECT_H2_STREAM_TAG
194-3
REDIRECT_H2_STREAM_ID
3
REDIRECT_H2_PUSHED_ON
REDIRECT_H2_PUSHED
REDIRECT_H2_PUSH
off
REDIRECT_H2PUSH
off
REDIRECT_HTTP2
on
REDIRECT_SSL_TLS_SNI
yeda999.net
REDIRECT_HTTPS
on
FCGI_ROLE
RESPONDER
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1711626976.6895
REQUEST_TIME
1711626976
PATH_INFO
/index/news/content/0/id/1/23.html
Environment Variables
empty

ThinkPHP Constants

APP_PATH
/www/wwwroot/yeda999.net/public/../application/
RUNTIME_PATH
/www/wwwroot/yeda999.net/public/../runtime/
EXTEND_PATH
../extend/
APP_DEBUG
false
THINK_VERSION
5.0.24
THINK_START_TIME
1711626976.6947
THINK_START_MEM
383048
EXT
.php
DS
/
THINK_PATH
/www/wwwroot/yeda999.net/thinkphp/
LIB_PATH
/www/wwwroot/yeda999.net/thinkphp/library/
CORE_PATH
/www/wwwroot/yeda999.net/thinkphp/library/think/
TRAIT_PATH
/www/wwwroot/yeda999.net/thinkphp/library/traits/
ROOT_PATH
/www/wwwroot/yeda999.net/
VENDOR_PATH
/www/wwwroot/yeda999.net/vendor/
LOG_PATH
/www/wwwroot/yeda999.net/public/../runtime/log/
CACHE_PATH
/www/wwwroot/yeda999.net/public/../runtime/cache/
TEMP_PATH
/www/wwwroot/yeda999.net/public/../runtime/temp/
CONF_PATH
/www/wwwroot/yeda999.net/public/../application/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false