[0] TemplateNotFoundException in Think.php line 82

模板文件不存在:/data/web/shirne/application/index/view/login/index.tpl

  1. public function fetch($template, $data = [], $config = [])
  2. {
  3. if ('' == pathinfo($template, PATHINFO_EXTENSION)) {
  4. // 获取模板文件名
  5. $template = $this->parseTemplate($template);
  6. }
  7. // 模板不存在 抛出异常
  8. if (!is_file($template)) {
  9. throw new TemplateNotFoundException('template not exists:' . $template, $template);
  10. }
  11. // 记录视图信息
  12. Container::get('app')
  13. ->log('[ VIEW ] ' . $template . ' [ ' . var_export(array_keys($data), true) . ' ]');
  14. $this->template->fetch($template, $data, $config);
  15. }

Call Stack

  1. in Think.php line 82
  2. at Think->fetch('/data/web/shirne/app...', ['config' => ['site-name' => '金龙国际彩票', 'site-keywords' => '...', 'site-description' => '站点描述信息', ...], 'navigator' => [['title' => '首页', 'url' => '/index.html'], ['title' => '服务范围', 'footer' => true, 'url' => '/page/services.html', ...], ['title' => '解决方案', 'footer' => true, 'url' => '/page/solutions.html', ...], ...], 'isLogin' => false, ...], []) in View.php line 175
  3. at View->fetch('', ['config' => ['site-name' => '金龙国际彩票', 'site-keywords' => '...', 'site-description' => '站点描述信息', ...], 'navigator' => [['title' => '首页', 'url' => '/index.html'], ['title' => '服务范围', 'footer' => true, 'url' => '/page/services.html', ...], ['title' => '解决方案', 'footer' => true, 'url' => '/page/solutions.html', ...], ...], 'isLogin' => false, ...], []) in Controller.php line 121
  4. at Controller->fetch() in LoginController.php line 61
  5. at LoginController->index(0)
  6. at ReflectionMethod->invokeArgs(object(LoginController), [0]) in Container.php line 299
  7. at Container->invokeReflectMethod(object(LoginController), object(ReflectionMethod), []) in Module.php line 148
  8. at Module->run() in App.php line 378
  9. at App->think\{closure}(object(Request), object(Closure), null)
  10. at call_user_func_array(object(Closure), [object(Request), object(Closure), null]) in Middleware.php line 119
  11. at Middleware->think\{closure}(object(Request))
  12. at call_user_func(object(Closure), object(Request)) in Middleware.php line 74
  13. at Middleware->dispatch(object(Request)) in App.php line 399
  14. at App->run() in index.php line 23

Environment Variables

GET Dataempty
POST Dataempty
Filesempty
Cookies
$Version 1
PHPSESSID b444d4de63dc8fbb02f727ac7dc4bf72
$Path /
Session
think { "detected": 1, "isWechat": false, "isMobile": false }
Server/Request Data
REDIRECT_UNIQUE_ID XDRbaSYzcW6V1x2pvESw7wAAAAk
REDIRECT_STATUS 200
UNIQUE_ID XDRbaSYzcW6V1x2pvESw7wAAAAk
HTTP_REFERER http://www.shirne.cn/
HTTP_COOKIE $Version=1; PHPSESSID=b444d4de63dc8fbb02f727ac7dc4bf72; $Path=/
HTTP_CONNECTION keep-alive
HTTP_HOST www.shirne.cn
HTTP_USER_AGENT Mozilla/4.5 (compatible; HTTrack 3.0x; Windows 98)
HTTP_ACCEPT text/html,image/png,image/jpeg,image/pjpeg,image/x-xbitmap,image/svg+xml,image/gif;q=0.9,*/*;q=0.1
HTTP_ACCEPT_LANGUAGE zh, en, *
HTTP_ACCEPT_ENCODING gzip, identity;q=0.9
PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin
SERVER_SIGNATURE
SERVER_SOFTWARE Apache/2.4.6 (CentOS) PHP/7.2.9
SERVER_NAME www.shirne.cn
SERVER_ADDR 43.227.66.245
SERVER_PORT 80
REMOTE_ADDR 1.163.67.142
DOCUMENT_ROOT /data/web/shirne/public
REQUEST_SCHEME http
CONTEXT_PREFIX
CONTEXT_DOCUMENT_ROOT /data/web/shirne/public
SERVER_ADMIN root@localhost
SCRIPT_FILENAME /data/web/shirne/public/index.php
REMOTE_PORT 52821
REDIRECT_URL /auth/login.html
GATEWAY_INTERFACE CGI/1.1
SERVER_PROTOCOL HTTP/1.1
REQUEST_METHOD GET
QUERY_STRING
REQUEST_URI /auth/login.html
SCRIPT_NAME /index.php
PATH_INFO /auth/login.html
PATH_TRANSLATED redirect:/index.php/auth/login.html/login.html
PHP_SELF /index.php/auth/login.html
REQUEST_TIME_FLOAT 1546935145.177
REQUEST_TIME 1546935145
Environment Variablesempty
ThinkPHP Constants
DOC_ROOT /data/web/shirne/public
<友情连结> 金龙彩票快餐/ 百姓彩票/ 优彩网/ 文件加密|加密软件|数据安全 山丽网安--最强推荐基于动态透明加密技术,集文档管理和 安全审计于一身的“山丽防水墙系统”/ 久游网 www.9you.com 互动娱乐门户网站/