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

                ??碼云GVP開源項目 12k star Uniapp+ElementUI 功能強大 支持多語言、二開方便! 廣告
                > 包擴展用于擴展多個封裝的功能文件,當使用時,只需要加載擴展包的相關信息,就可以通過程序進行使用,使用的方法也是通過`extend`來進行加載,包文件需要放在框架的`Extend/Package`中,需要注意的是我們需要定義第二個參數為1,下面以使用smarty引擎為例: ```php public function smarty() { extend('smarty/Smarty.class.php',1); $smarty = new \Smarty(); //建立smarty實例對象 $smarty->templates("./templates"); //設置模板目錄(這里可以根據自己需要進行創建) $smarty->templates_c("./templates_c"); //設置編譯目錄(這里可以根據自己需要進行創建) $smarty->cache("./cache"); //緩存目錄(這里可以根據自己需要進行創建) $smarty->cache_lifetime = 0; //緩存時間 $smarty->caching = true; //緩存方式 $smarty->left_delimiter = "{#"; //模塊左標記 $smarty->right_delimiter = "#}"; //模塊右標記 return $smarty; } //其他控制器中可以進行調用 public function show() { $smarty = $this->smarty(); $smarty -> assign("name", "Joker"); //進行模板變量替換 $smarty -> display("index.htm"); //編譯并顯示位于./templates下的index.htm模板 } ```
                  <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>

                              哎呀哎呀视频在线观看