<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>

                # View 通過加載器加載并返回一個模板 ## loader ``` /** * html測試 */ public function http_html_test() { $template = $this->loader->view('server::404'); $this->http_output->end(template); } ``` server::404 是指Server/Views下的404.blade.php文件 app::404 是指app/Views下的404.blade.php文件 具體的請參考blade模板引擎。 ## 修改模板引擎 SD支持自定義模板引擎。 可以通過重寫AppServer中的setTemplateEngine方法設置自定義的模板引擎,以下是設置Plates模板引擎的代碼。 ```php /** * 設置模板引擎 */ public function setTemplateEngine() { $this->templateEngine = new Engine(); $this->templateEngine->addFolder('server', __DIR__ . '/Views'); $this->templateEngine->addFolder('app', __DIR__ . '/../app/Views'); $this->templateEngine->registerFunction('get_www', 'get_www'); } ``` 再通過自定義Loader實現自定義的view加載即可。 [Blade教程](http://laravelacademy.org/post/8773.html)
                  <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>

                              哎呀哎呀视频在线观看