收藏文章 楼主

thinkphp

版块:疑难   类型:普通   作者:小绿叶技术博客   查看:799   回复:0   获赞:0   时间:2021-11-09 17:07:28

https://www.zkii.net/tech/php/1711.html


0] TemplateNotFoundException in Think.php line 82

模板文件不存在:/usr/home/byu7606440001/htdocs/public/public/themes/simpleboot3/portal/index.html

     */

    public function fetch($template, $data = [], $config = [])

    {

        if ('' == pathinfo($template, PATHINFO_EXTENSION)) {

            // 获取模板文件名

            $template = $this->parseTemplate($template);

        }

        // 模板不存在 抛出异常

        if (!is_file($template)) {

            throw new TemplateNotFoundException('template not exists:' . $template, $template);

        }

        // 记录视图信息

        App::$debug && Log::record('[ VIEW ] ' . $template . ' [ ' . var_export(array_keys($data), true) . ' ]', 'info');

        $this->template->fetch($template, $data, $config);

    }


    /**

     * 渲染模板内容

     * @access public

Call Stack

in Think.php line 82

at Think->fetch('/usr/home/byu7606440...', ['site_info' => ['site_name' => '...', 'site_seo_title' => '...', 'site_seo_keywords' => '...', ...], 'product' => [['id' => '96', 'more' => ['audio' => '', 'video' => '', 'thumbnail' => 'portal/20200910/a7b6...', ...], 'post_title' => '...', ...]], 'case' => [['id' => '11', 'more' => ['audio' => '', 'video' => '', 'thumbnail' => 'portal/20200910/5d25...', ...], 'post_title' => '...', ...], ['id' => '12', 'more' => ['audio' => '', 'video' => '', 'thumbnail' => 'portal/20200910/0ac6...', ...], 'post_title' => '...', ...], ['id' => '13', 'more' => ['audio' => '', 'video' => '', 'thumbnail' => 'portal/20200910/2ce9...', ...], 'post_title' => '...', ...], ...], ...], []) in View.php line 164

at View->fetch('/usr/home/byu7606440...', [], [], []) in Controller.php line 120

at Controller->fetch('/usr/home/byu7606440...', [], [], []) in HomeBaseController.php line 167

at HomeBaseController->fetch(':index') in IndexController.php line 147

at IndexController->index()

at ReflectionMethod->invokeArgs(object(IndexController), []) in App.php line 343

at App::invokeMethod([object(IndexController), 'index'], []) in App.php line 611

at App::module(['', null, null], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...], null) in App.php line 457

at App::exec(['type' => 'module', 'module' => ['', null, null]], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...]) in App.php line 139

at App::run() in index.php line 44

提供企业建站服务,免费网防系统,提交信息登录 http://yundun.ddoss.cn 邮箱: proposal@ddoss.cn 
回复列表
默认   热门   正序   倒序

回复:thinkphp

头像

用户名:

粉丝数:

签名:

资料 关注 好友 消息