<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                合規國際互聯網加速 OSASE為企業客戶提供高速穩定SD-WAN國際加速解決方案。 廣告
                ## 視圖前言 ``` // 安裝thinkphp模板引擎 composer require topthink/think-template ``` 詳見:[topthink/think-template](https://packagist.org/packages/topthink/think-template) ## 創建core/view/Thinkphp.php ``` <?php namespace core\view; // tp的模板引擎 use think\Template; class Thinkphp implements ViewInterface { protected $template; public function init() { $config = \App::getContainer()->get('config')->get('view'); $this->template = new Template([ 'view_path' => $config['view_path'], 'cache_path' => $config['cache_path'] ]); } public function render($path,array $params = []) { $this->template->assign($params); $path = str_replace('.','/',$path); // .替換成/ return $this->template->fetch($path); } } ``` ## 更改契約 ![](https://img.kancloud.cn/be/d8/bed8493f2e431837362d6ce0e01d7602_884x306.png) 此時已經完成了, 可以正常使用tp模板引擎。 ## 運行 ### 創建views/thinkphp/index.html ``` <h1>{$str}</h1> ``` ### 運行 ![](https://img.kancloud.cn/2b/32/2b3237bf3716329b1253ff01bad4d91b_787x556.png) ![](https://img.kancloud.cn/a0/f1/a0f138b7fd385c37ce1afb64b92ec6dd_715x337.png)
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看