[0] TemplateNotFoundException in Think.php line 80

澳门凯旋门官方网址

  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('/www/wwwroot/default...', ['links' => [['id' => 75, 'name' => '合肥APP开发', 'url' => 'http://www.yiyunclou...', ...], ['id' => 72, 'name' => '淘宝控价', 'url' => 'http://www.xidakeji....', ...], ['id' => 63, 'name' => '惠州网站建设', 'url' => 'http://www.summer075...', ...]], 'config' => ['title' => '...', 'keywords' => '...', 'description' => '...', ...], 'citys' => '合肥', ...], []) in View.php line 159
  3. at View->fetch('', ['links' => [['id' => 75, 'name' => '合肥APP开发', 'url' => 'http://www.yiyunclou...', ...], ['id' => 72, 'name' => '淘宝控价', 'url' => 'http://www.xidakeji....', ...], ['id' => 63, 'name' => '惠州网站建设', 'url' => 'http://www.summer075...', ...]], 'config' => ['title' => '...', 'keywords' => '...', 'description' => '...', ...], 'citys' => '合肥', ...], [], []) in Controller.php line 111
  4. at Controller->fetch() in Index.php line 4040
  5. at Index->dc()
  6. at ReflectionMethod->invokeArgs(object(Index), []) in App.php line 196
  7. at App::invokeMethod([object(Index), 'dc'], []) in App.php line 413
  8. at App::module(['index', 'index', 'dc'], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...], false) in App.php line 295
  9. at App::exec(['type' => 'module', 'module' => ['index', 'index', 'dc'], 'convert' => false], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...]) in App.php line 123
  10. at App::run() in start.php line 18
  11. at require('/www/wwwroot/default...') in index.php line 19

Environment Variables

GET Data

/dc_html
POST Data
empty
Files
empty
Cookies
empty

Session

think
{ "citys": "\u5408\u80a5" }

Server/Request Data

USER
www
HOME
/home/www
SCRIPT_NAME
/index.php
REQUEST_URI
/dc.html
QUERY_STRING
/dc.html
REQUEST_METHOD
GET
SERVER_PROTOCOL
HTTP/1.1
GATEWAY_INTERFACE
CGI/1.1
REDIRECT_QUERY_STRING
/dc.html
REDIRECT_URL
/dc.html
REMOTE_PORT
4692
SCRIPT_FILENAME
/www/wwwroot/default/www_tpyiyun_com/public/index.php
SERVER_ADMIN
CONTEXT_DOCUMENT_ROOT
/www/wwwroot/default/www_tpyiyun_com/public
CONTEXT_PREFIX
REQUEST_SCHEME
http
DOCUMENT_ROOT
/www/wwwroot/default/www_tpyiyun_com/public
REMOTE_ADDR
166.88.73.242
SERVER_PORT
80
SERVER_ADDR
172.18.16.223
SERVER_NAME
www.prairiesmokepressinc.com
SERVER_SOFTWARE
Apache
SERVER_SIGNATURE
<address>Apache Server at www.prairiesmokepressinc.com Port 80</address>
LD_LIBRARY_PATH
/www/server/apache/lib:/www/server/apache/lib
PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin
HTTP_ACCEPT_LANGUAGE
zh-CN,zh
HTTP_ACCEPT
text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8
HTTP_CONNECTION
keep-alive
HTTP_HOST
www.prairiesmokepressinc.com
HTTP_REFERER
http://www.prairiesmokepressinc.com
HTTP_ACCEPT_ENCODING
gzip, deflate
HTTP_USER_AGENT
CCBot/2.0 (https://commoncrawl.org/faq/)
proxy-nokeepalive
1
REDIRECT_STATUS
200
FCGI_ROLE
RESPONDER
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1558774284.4813
REQUEST_TIME
1558774284
PATH_INFO
/dc.html
ALL_HTTP
Environment Variables
empty

ThinkPHP Constants

APP_PATH
/www/wwwroot/default/www_tpyiyun_com/public/../application/
PREFIX
tp_
THINK_VERSION
5.0.10
THINK_START_TIME
1558774284.4819
THINK_START_MEM
383840
EXT
.php
DS
/
THINK_PATH
/www/wwwroot/default/www_tpyiyun_com/thinkphp/
LIB_PATH
/www/wwwroot/default/www_tpyiyun_com/thinkphp/library/
CORE_PATH
/www/wwwroot/default/www_tpyiyun_com/thinkphp/library/think/
TRAIT_PATH
/www/wwwroot/default/www_tpyiyun_com/thinkphp/library/traits/
ROOT_PATH
/www/wwwroot/default/www_tpyiyun_com/
EXTEND_PATH
/www/wwwroot/default/www_tpyiyun_com/extend/
VENDOR_PATH
/www/wwwroot/default/www_tpyiyun_com/vendor/
RUNTIME_PATH
/www/wwwroot/default/www_tpyiyun_com/runtime/
LOG_PATH
/www/wwwroot/default/www_tpyiyun_com/runtime/log/
CACHE_PATH
/www/wwwroot/default/www_tpyiyun_com/runtime/cache/
TEMP_PATH
/www/wwwroot/default/www_tpyiyun_com/runtime/temp/
CONF_PATH
/www/wwwroot/default/www_tpyiyun_com/public/../application/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false