<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國際加速解決方案。 廣告
                使用內置的layout方法可以更靈活的在程序中控制模板輸出的布局功能,尤其適用于局部需要布局或者關閉布局的情況,這種方式也不需要在配置文件中開啟LAYOUT\_ON。例如: namespace Home\\Controller; use Think\\Controller; Class UserController extends Controller{ Public function add() { layout(true); $this->display('add'); } } namespace Home\\Controller; use Think\\Controller; Class UserController extends Controller{ Public function add() { layout(true); $this->display('add'); } } 表示當前的模板輸出啟用了布局模板,并且采用默認的layout布局模板。 如果當前輸出需要使用不同的布局模板,可以動態的指定布局模板名稱,例如: namespace Home\\Controller; use Think\\Controller; Class UserController extends Controller{ Public function add() { layout('Layout/newlayout'); $this->display('add'); } } namespace Home\\Controller; use Think\\Controller; Class UserController extends Controller{ Public function add() { layout('Layout/newlayout'); $this->display('add'); } } 或者使用layout方法動態關閉當前模板的布局功能(這種用法可以配合第一種布局方式,例如全局配置已經開啟了布局,可以在某個頁面單獨關閉): namespace Home\\Controller; use Think\\Controller; Class UserController extends Controller{ Public function add() { layout(false); // 臨時關閉當前模板的布局功能 $this->display('add'); } } namespace Home\\Controller; use Think\\Controller; Class UserController extends Controller{ Public function add() { layout(false); // 臨時關閉當前模板的布局功能 $this->display('add'); } } 三種模板布局方式中,第一種和第三種是在程序中配置實現模板布局,第二種方式則是單純通過模板標簽在模板中使用布局。具體選擇什么方式,需要根據項目的實際情況來了。
                  <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>

                              哎呀哎呀视频在线观看