[0] TemplateNotFoundException in Think.php line 82

模板文件不存在:../tpl/index/index/regionlist.html

  1. */
  2. public function fetch($template, $data = [], $config = [])
  3. {
  4. if ('' == pathinfo($template, PATHINFO_EXTENSION)) {
  5. // 获取模板文件名
  6. $template = $this->parseTemplate($template);
  7. }
  8. // 模板不存在 抛出异常
  9. if (!is_file($template)) {
  10. throw new TemplateNotFoundException('template not exists:' . $template, $template);
  11. }
  12. // 记录视图信息
  13. App::$debug && Log::record('[ VIEW ] ' . $template . ' [ ' . var_export(array_keys($data), true) . ' ]', 'info');
  14. $this->template->fetch($template, $data, $config);
  15. }
  16. /**
  17. * 渲染模板内容
  18. * @access public

Call Stack

  1. in Think.php line 82
  2. at Think->fetch('../tpl/index/index/r...', ['default_nav' => 'index/regionlist', 'host' => 'pycn.api.py.cn', 'havelogin' => false, ...], []) in View.php line 163
  3. at View->fetch('', ['default_nav' => 'index/regionlist', 'host' => 'pycn.api.py.cn', 'havelogin' => false, ...], ['__ROOT__' => '', '__URL__' => '/index/index', '__STATIC__' => '/static', ...], []) in Controller.php line 120
  4. at Controller->fetch() in Index.php line 248
  5. at Index->regionlist()
  6. at ReflectionMethod->invokeArgs(object(Index), []) in App.php line 343
  7. at App::invokeMethod([object(Index), 'regionlist'], []) in App.php line 611
  8. at App::module(['index', 'index', 'regionlist'], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...], true) in App.php line 456
  9. at App::exec(['type' => 'module', 'module' => ['index', 'index', 'regionlist']], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...]) in App.php line 139
  10. at App::run() in start.php line 19
  11. at require('/home/pyhttp/php/run...') in index.php line 28

Environment Variables

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

Server/Request Data

USER
www-data
HOME
/var/www
HTTP_ACCEPT
*/*
HTTP_HOST
pycn.api.py.cn
PATH_INFO
/index/index/regionlist.html
PHP_VALUE
open_basedir=/home/pyhttp/php/run/public:/tmp/:/proc/:/home/pyhttp/php/run
REDIRECT_STATUS
200
SERVER_NAME
pycn.api.py.cn
SERVER_PORT
80
SERVER_ADDR
10.3.139.77
REMOTE_USER
REMOTE_PORT
37194
REMOTE_ADDR
47.100.103.18
SERVER_SOFTWARE
nginx/1.18.0
GATEWAY_INTERFACE
CGI/1.1
REQUEST_SCHEME
http
SERVER_PROTOCOL
HTTP/1.1
DOCUMENT_ROOT
/home/pyhttp/php/run/public
DOCUMENT_URI
/index.php
REQUEST_URI
/index/index/regionlist.html
SCRIPT_NAME
/index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD
GET
QUERY_STRING
s=/index/index/regionlist.html
SCRIPT_FILENAME
/home/pyhttp/php/run/public/index.php
FCGI_ROLE
RESPONDER
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1714121504.4056
REQUEST_TIME
1714121504
Environment Variables
empty

ThinkPHP Constants

__default_module__
index
__default_controller__
index
__default_action__
index
__default_forbid_module__
["common"]
APP_PATH
/home/pyhttp/php/run/public/../app/
NOW_TIME
1714121504
CONF_PATH
/home/pyhttp/php/run/public/../conf/
SITE_PATH
/home/pyhttp/php/run/public/
THINK_VERSION
5.0.24
THINK_START_TIME
1714121504.4057
THINK_START_MEM
394776
EXT
.php
DS
/
THINK_PATH
/home/pyhttp/php/run/thinkphp/
LIB_PATH
/home/pyhttp/php/run/thinkphp/library/
CORE_PATH
/home/pyhttp/php/run/thinkphp/library/think/
TRAIT_PATH
/home/pyhttp/php/run/thinkphp/library/traits/
ROOT_PATH
/home/pyhttp/php/run/
EXTEND_PATH
/home/pyhttp/php/run/extend/
VENDOR_PATH
/home/pyhttp/php/run/vendor/
RUNTIME_PATH
/home/pyhttp/php/run/runtime/
LOG_PATH
/home/pyhttp/php/run/runtime/log/
CACHE_PATH
/home/pyhttp/php/run/runtime/cache/
TEMP_PATH
/home/pyhttp/php/run/runtime/temp/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false