[0] TemplateNotFoundException in Think.php line 80

模板文件不存在:/home/www/tmxd/application/index/view/renli/renliziyuan.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 80
  2. at Think->fetch('/home/www/tmxd/appli...', ['i' => 7], []) in View.php line 163
  3. at View->fetch('', ['i' => 7], ['__ROOT__' => '', '__URL__' => '/index/renli', '__STATIC__' => '/static', ...], []) in Controller.php line 120
  4. at Controller->fetch() in Renli.php line 16
  5. at Renli->renliziyuan()
  6. at ReflectionMethod->invokeArgs(object(Renli), []) in App.php line 343
  7. at App::invokeMethod([object(Renli), 'renliziyuan'], []) in App.php line 595
  8. at App::module(['index', 'renli', 'renliziyuan'], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...], true) in App.php line 456
  9. at App::exec(['type' => 'module', 'module' => ['index', 'renli', 'renliziyuan']], ['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/www/tmxd/think...') in index.php line 16

Environment Variables

GET Data
empty
POST Data
empty
Files
empty

Cookies

SECKEY_CID2
79d1a33b32b472b56707b9e66d126060d184fce0
BMAP_SECKEY2
b5bfa03379d0be516b3e08074db638e806af9223b38e2f9ecc5cfb328f35cac3f4edbf44064e504085094b9c01cad31f8c142b2c8897a8af3da87ed6eda1484cfea13d44e499135b162aa244c0afbcb8fdaecc1de203948489281142b2ce180f42d2b2475a064c998e295f6124855b37c1d489a03f7679ee4a3767bf64be3f1d671bdcd6d40cd113e9f3435e5d73e33f42ba67ed7f1eb0bf9d66d6f317a00ce7225b50173f30f662f53231a98689e1f08852b5d1605bd9c3bb765e978db36c58e2d68ddb1efd10fa88fdff6faff4a7867e103156282f24c30dd17fec8cb003c4c53f862e37d5c3329dd4e52c0cd23898
Hm_lvt_1a507dd8b687d74718153aaf2de47173
1637042009
Session
empty

Server/Request Data

USER
apache
HOME
/usr/share/httpd
HTTP_COOKIE
SECKEY_CID2=79d1a33b32b472b56707b9e66d126060d184fce0; BMAP_SECKEY2=b5bfa03379d0be516b3e08074db638e806af9223b38e2f9ecc5cfb328f35cac3f4edbf44064e504085094b9c01cad31f8c142b2c8897a8af3da87ed6eda1484cfea13d44e499135b162aa244c0afbcb8fdaecc1de203948489281142b2ce180f42d2b2475a064c998e295f6124855b37c1d489a03f7679ee4a3767bf64be3f1d671bdcd6d40cd113e9f3435e5d73e33f42ba67ed7f1eb0bf9d66d6f317a00ce7225b50173f30f662f53231a98689e1f08852b5d1605bd9c3bb765e978db36c58e2d68ddb1efd10fa88fdff6faff4a7867e103156282f24c30dd17fec8cb003c4c53f862e37d5c3329dd4e52c0cd23898; Hm_lvt_1a507dd8b687d74718153aaf2de47173=1637042009
HTTP_CACHE_CONTROL
no-cache
HTTP_CONNECTION
Keep-Alive
HTTP_USER_AGENT
Mozilla/4.0 (compatible; MSIE 8.0; Win32)
HTTP_HOST
www.iopsilion.com
HTTP_REFERER
https://www.iopsilion.com/index/news/news1/
REDIRECT_STATUS
200
SERVER_NAME
www.iopsilion.com
SERVER_PORT
443
SERVER_ADDR
192.168.0.54
REMOTE_PORT
36406
REMOTE_ADDR
222.188.159.167
SERVER_SOFTWARE
nginx/1.18.0
GATEWAY_INTERFACE
CGI/1.1
HTTPS
on
REQUEST_SCHEME
https
SERVER_PROTOCOL
HTTP/1.1
DOCUMENT_ROOT
/home/www/tmxd
DOCUMENT_URI
/index.php
REQUEST_URI
/index/renli/fulidaiyu1/
SCRIPT_NAME
/index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD
GET
QUERY_STRING
s=/index/renli/fulidaiyu1/
SCRIPT_FILENAME
/home/www/tmxd/index.php
FCGI_ROLE
RESPONDER
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1637042338.9433
REQUEST_TIME
1637042338
PATH_INFO
/index/renli/fulidaiyu1/
Environment Variables
empty

ThinkPHP Constants

APP_PATH
/home/www/tmxd/application/
THINK_VERSION
5.0.14
THINK_START_TIME
1637042338.9434
THINK_START_MEM
398440
EXT
.php
DS
/
THINK_PATH
/home/www/tmxd/thinkphp/
LIB_PATH
/home/www/tmxd/thinkphp/library/
CORE_PATH
/home/www/tmxd/thinkphp/library/think/
TRAIT_PATH
/home/www/tmxd/thinkphp/library/traits/
ROOT_PATH
/home/www/tmxd/
EXTEND_PATH
/home/www/tmxd/extend/
VENDOR_PATH
/home/www/tmxd/vendor/
RUNTIME_PATH
/home/www/tmxd/runtime/
LOG_PATH
/home/www/tmxd/runtime/log/
CACHE_PATH
/home/www/tmxd/runtime/cache/
TEMP_PATH
/home/www/tmxd/runtime/temp/
CONF_PATH
/home/www/tmxd/application/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false