[0] TemplateNotFoundException in Think.php line 82

模板文件不存在:/home/www/nyzhongyi.com/template/ahsgltcdkj/cn/product.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('/home/www/nyzhongyi.com...', ['site_id' => '11', 'site_lang' => 'cn', 'site_name' => '中文(簡體)', ...], []) in View.php line 163
  3. at View->fetch('/home/www/nyzhongyi.com...', [], [], []) in Controller.php line 120
  4. at Controller->fetch('/home/www/nyzhongyi.com...') in CnController.php line 28
  5. at cnController->_empty()
  6. at ReflectionMethod->invokeArgs(object(cnController), []) in App.php line 343
  7. at App::invokeMethod([object(cnController), '_empty'], ['product']) in App.php line 611
  8. at App::module(['index', 'Cn', 'product'], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...], false) in App.php line 457
  9. at App::exec(['type' => 'module', 'module' => ['index', 'Cn', 'product'], '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('/home/www/nyzhongyi.com...') in index.php line 22

Environment Variables

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

Server/Request Data

USER
www
HOME
/home/www
FCGI_ROLE
RESPONDER
REDIRECT_PATH_INFO
product.html
REDIRECT_STATUS
200
proxy-nokeepalive
1
HTTP_HOST
www.nyzhongyi.com
HTTP_REFERER
http://www.baidu.com/search/spider.htm
HTTP_X_APPLE_TZ
0
HTTP_X_APPLE_STORE_FRONT
143444,12
HTTP_ACCEPT
text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
HTTP_ACCEPT_ENCODING
gzip, deflate
HTTP_ACCEPT_LANGUAGE
en-US,en;q=0.5
HTTP_CACHE_CONTROL
no-cache
CONTENT_TYPE
application/x-www-form-urlencoded; charset=utf-8
HTTP_USER_AGENT
Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0)
HTTP_X_MICROSOFTAJAX
Delta=true
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.nyzhongyi.com Port 80</address>
SERVER_SOFTWARE
Apache
SERVER_NAME
www.nyzhongyi.com
SERVER_ADDR
183.136.214.48
SERVER_PORT
80
REMOTE_ADDR
156.238.221.72
DOCUMENT_ROOT
/home/www/nyzhongyi.com
REQUEST_SCHEME
http
CONTEXT_PREFIX
CONTEXT_DOCUMENT_ROOT
/home/www/nyzhongyi.com
SERVER_ADMIN
webmaster@example.com
SCRIPT_FILENAME
/home/www/nyzhongyi.com/index.php
REMOTE_PORT
38602
REDIRECT_URL
/product.html
GATEWAY_INTERFACE
CGI/1.1
SERVER_PROTOCOL
HTTP/1.1
REQUEST_METHOD
GET
QUERY_STRING
REQUEST_URI
/product.html
SCRIPT_NAME
/index.php
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1590183740.1823
REQUEST_TIME
1590183740
PATH_INFO
product.html
Environment Variables
empty

ThinkPHP Constants

APP_PATH
/home/www/nyzhongyi.com/application/
THINK_VERSION
5.0.24
THINK_START_TIME
1590183740.1836
THINK_START_MEM
267656
EXT
.php
DS
/
THINK_PATH
/home/www/nyzhongyi.com/thinkphp/
LIB_PATH
/home/www/nyzhongyi.com/thinkphp/library/
CORE_PATH
/home/www/nyzhongyi.com/thinkphp/library/think/
TRAIT_PATH
/home/www/nyzhongyi.com/thinkphp/library/traits/
ROOT_PATH
/home/www/nyzhongyi.com/
EXTEND_PATH
/home/www/nyzhongyi.com/extend/
VENDOR_PATH
/home/www/nyzhongyi.com/vendor/
RUNTIME_PATH
/home/www/nyzhongyi.com/runtime/
LOG_PATH
/home/www/nyzhongyi.com/runtime/log/
CACHE_PATH
/home/www/nyzhongyi.com/runtime/cache/
TEMP_PATH
/home/www/nyzhongyi.com/runtime/temp/
CONF_PATH
/home/www/nyzhongyi.com/application/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false
AG在线注册 AG亚洲平台 AG8亚洲只为非凡享受 AG平台手机版 AG总代 AG亚游国际游戏 澳门AG在线