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

                企業??AI智能體構建引擎,智能編排和調試,一鍵部署,支持知識庫和私有化部署方案 廣告
                ### 全局配置方式 首在config目錄中的template.php配置 'layout_on' => true, 'layout_name' => 'layout', 在view中創建header.html,footer.html,layout.html 在layout.html中 {include file="header" /} {__CONTENT__} {include file="footer" /} 然后在index.html中只寫主體部分就可以了。 ><span style="color:red;"> 注:如果在某個頁面中不想用模板布局的話,可以用{__NOLAYOUT__}關閉,具體在你不要模板布局的頁面中的頂部加入即可。</span> ### 模板繼承 要先關閉'layout_on' => false, 在view的同目錄下建立public目錄,然后在其建立heaer.html,footer.html,base.html 在base.html中寫入如下代碼: ``` {include file="public/header1" /} {block name="body"} ``` 主體 {/block} {include file="public/footer1" /} 然后在主模板文件index.html中繼承base.html ``` {extend name="public/base" /} {block name="body"} 這是主體內容 {/block} ``` 也可以用block加載include ``` {block name="header"} {include file="public/header1" /} {/block} {block name="body"} 主體 {/block} {block name="footer"} {include file="public/footer1" /} {/block} ``` 一定要全部將base中的block全部實現,有幾個實現幾個; {__block__}可以將base中的默認定義的內容顯示出來; 在父模板(base.html)中只允許出block與include標簽,在繼承模板(index.html)中只允許出現block和extend標簽。
                  <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>

                              哎呀哎呀视频在线观看