[0] TemplateNotFoundException in Think.php line 82

模板文件不存在:/www/wwwroot/ykkzmb/app/index/view/lyspnbb/article/list_1.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('lyspnbb/article/list...', ['bdxx' => null, 'lblb' => [], 'cplb' => [], ...], []) in View.php line 163
  3. at View->fetch('lyspnbb/article/list...', [], ['"index_files' => '"/app/index/view/lys...'], []) in Controller.php line 120
  4. at Controller->fetch('lyspnbb/article/list...', [], ['"index_files' => '"/app/index/view/lys...']) in Index.php(6) : eval()'d code(1) : eval()'d code line 610
  5. at Index->index()
  6. at ReflectionMethod->invokeArgs(object(Index), []) in App.php line 343
  7. at App::invokeMethod([object(Index), 'index'], []) in App.php line 611
  8. at App::module([null, 'Index', 'index'], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...], false) in App.php line 457
  9. at App::exec(['type' => 'module', 'module' => [null, 'Index', 'index'], 'convert' => false], ['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('/www/wwwroot/ykkzmb/...') in index.php line 21

Environment Variables

GET Data
empty
POST Data
empty
Files
empty
Cookies
empty

Session

think
{ "yurl": "", "wxid": null, "fwif": "1" }

Server/Request Data

USER
www
HOME
/home/www
FCGI_ROLE
RESPONDER
REDIRECT_STATUS
200
proxy-nokeepalive
1
HTTP_USER_AGENT
curl/7.29.0
HTTP_HOST
www.yuteshipin.com
HTTP_ACCEPT
*/*
PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin
LD_LIBRARY_PATH
/www/server/apache/lib
SERVER_SIGNATURE
<address>Apache Server at www.yuteshipin.com Port 80</address>
SERVER_SOFTWARE
Apache
SERVER_NAME
www.yuteshipin.com
SERVER_ADDR
43.248.191.105
SERVER_PORT
80
REMOTE_ADDR
45.201.254.90
DOCUMENT_ROOT
/www/wwwroot/ykkzmb
REQUEST_SCHEME
http
CONTEXT_PREFIX
CONTEXT_DOCUMENT_ROOT
/www/wwwroot/ykkzmb
SERVER_ADMIN
webmaster@example.com
SCRIPT_FILENAME
/www/wwwroot/ykkzmb/index.php
REMOTE_PORT
49504
REDIRECT_URL
/article/list_1.html
REDIRECT_QUERY_STRING
s=/article/list_1.html
GATEWAY_INTERFACE
CGI/1.1
SERVER_PROTOCOL
HTTP/1.1
REQUEST_METHOD
GET
QUERY_STRING
s=/article/list_1.html
REQUEST_URI
/article/list_1.html
SCRIPT_NAME
/index.php
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1606350682.4416
REQUEST_TIME
1606350682
PATH_INFO
/article/list_1.html
Environment Variables
empty

ThinkPHP Constants

APP_PATH
/www/wwwroot/ykkzmb/app/
EXTEND_PATH
./extend/
BIND_MODULE
index
THINK_VERSION
5.0.24
THINK_START_TIME
1606350682.4426
THINK_START_MEM
262976
EXT
.php
DS
/
THINK_PATH
/www/wwwroot/ykkzmb/thinkphp/
LIB_PATH
/www/wwwroot/ykkzmb/thinkphp/library/
CORE_PATH
/www/wwwroot/ykkzmb/thinkphp/library/think/
TRAIT_PATH
/www/wwwroot/ykkzmb/thinkphp/library/traits/
ROOT_PATH
/www/wwwroot/ykkzmb/
VENDOR_PATH
/www/wwwroot/ykkzmb/vendor/
RUNTIME_PATH
/www/wwwroot/ykkzmb/runtime/
LOG_PATH
/www/wwwroot/ykkzmb/runtime/log/
CACHE_PATH
/www/wwwroot/ykkzmb/runtime/cache/
TEMP_PATH
/www/wwwroot/ykkzmb/runtime/temp/
CONF_PATH
/www/wwwroot/ykkzmb/app/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false