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

                ThinkChat2.0新版上線,更智能更精彩,支持會話、畫圖、視頻、閱讀、搜索等,送10W Token,即刻開啟你的AI之旅 廣告
                <table cellspacing="0" cellpadding="0" border="0" width="100%" summary="Header navigation table"><tbody><tr><th align="center" colspan="3">Smarty - the compiling PHPtemplate engine</th> </tr><tr><td valign="bottom" align="left" width="25%"><a accesskey="P" href="api.compileAllConfig.html">Prev</a></td> <td valign="bottom" align="center" width="50%">Chapter 13. Smarty Class Methods()</td> <td valign="bottom" align="right" width="25%"><a accesskey="N" href="api.config.load.html">Next</a></td> </tr></tbody></table> # compileAllTemplates()[編譯所有模板] Name compileAllTemplates() ― compiles all known templates 編譯所有已知模板 Description string compileAllTemplates(string extension,boolean force, integer timelimit,integer maxerror); This function compiles template files found in the $template_dir folder. It uses the following parameters: extension is an optional string which defines the file extention for the template files. The default is ".tpl". force is an optional boolean which controls if only modified (false) or all (true) templates shall be compiled. The default is "false". timelimit is an optional integer to set a runtime limit in seconds for the compilation process. The default is no limit. maxerror is an optional integer to set an error limit. If more templates failed to compile the function will be aborted. The default is no limit. 本函數將編譯在$config_dir目錄下找到的模板文件,它有如下參數: “extension”是一個字符串類型的可選項,它定義將編譯何種擴展名的模板文件,默認為“.tpl”。 “force”是個布爾型可選項,當為false時只編譯修改的模板文件,為true時編譯所有模板文件。默認為false。 “timelimit”是個整型可選項,用以設置強制編譯的運行時間,單位為秒,默認為不限時間。 “maxerror”是個整型可選項,用以設置最小失敗次數,如果過多的模板文件編譯失敗將終止運行。默認為不限次數。 <table width="80%" border="0" cellpadding="2" cellspacing="2" class="note"><caption> 提示 </caption> <tr><td>Note<br/> This function may not create desired results in all configurations. Use is on own risk.<br/> 本函數可能不會對所有模板文件產生預期效果,風險自擔,請注意這點!</td> </tr></table> <table width="80%" border="0" cellpadding="2" cellspacing="2" class="note"><caption> 提示 </caption> <tr><td>If any template requires registered plugins, filters or objects you must register all of them before running this function.<br/> 如果需要在模板中注冊插件、過濾器、對象,請在運行本函數之前先注冊它們。</td> </tr></table> <table width="80%" border="0" cellpadding="2" cellspacing="2" class="note"><caption> 提示 </caption> <tr><td>Note<br/> If you are using template inheritance this function will create compiled files of parent templates which will never be used.<br/> 當使用模板繼承時,本函數同樣會編譯父模板,但永遠不會用到父的編譯模板。</td> </tr></table> <table class="EXAMPLE" cellspacing="0" cellpadding="0" border="0" width="100%"><tbody><tr><td> <div class="EXAMPLE"><strong><a name="AEN31312" id="AEN31312"/><span class="PROGRAMLISTING">Example 13.12. compileAllTemplates()</span></strong><b><br/></b><table width="100%" bgcolor="#e0e0e0" border="0"><tbody><tr><td> <pre class="PROGRAMLISTING">&lt;?phpinclude('Smarty.class.php');$smarty = new Smarty;// force compilation of all template files$smarty-&gt;compileAllTemplates('.tpl',true);?&gt;</pre></td> </tr></tbody></table></div> </td> </tr></tbody></table> <table cellspacing="0" cellpadding="0" border="0" width="100%" summary="Footer navigation table"><tbody><tr><td valign="top" align="left" width="33%"><a accesskey="P" href="api.compileAllConfig.html">Prev</a></td> <td valign="top" align="center" width="34%"><a accesskey="H" href="index.html">Home</a></td> <td valign="top" align="right" width="33%"><a accesskey="N" href="api.config.load.html">Next</a></td> </tr><tr><td valign="top" align="left" width="33%">compileAllConfig()<br/> 編譯所有配置文件</td> <td valign="top" align="center" width="34%"><a accesskey="U" href="api.functions.html">Up</a></td> <td valign="top" align="right" width="33%">configLoad()<br/> 加載配置</td> </tr></tbody></table>
                  <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>

                              哎呀哎呀视频在线观看