<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國際加速解決方案。 廣告
                <table width="100%" border="0" cellpadding="0" cellspacing="0"><tr><th colspan="3" align="center">Smarty - the compiling PHP template engine</th></tr><tr><td width="25%" align="left" valign="bottom"><a href="advanced.features.security.html">Prev</a></td><td width="50%" align="center" valign="bottom">Chapter 15. Advanced Features 高級特性</td><td width="25%" align="right" valign="bottom"> <a href="advanced.features.tem.inheritance.html">Next</a></td></tr></table> # [Changing settings by template]()[通過模板更改設置] Normally you configure the Smarty settings by modifying the Smarty class variables.Furthermore you can register plugins, filters etc. with Smarty functions. Modifications done to the Smarty object will be global for all templates. However the Smarty class variables and functions can be accessed or called by induvidual template objects.Modification done to a template object will apply only for that template and its included subtemplates. 通常,Smarty的設置是經由[Smarty類變量](#)的修改完成的。進一步,通過[Smarty方法](#)你可以注冊插件、過濾器等等。Smarty對象設置的更改是全局性的,對所有模板有效。 然而,Smarty類變量和函數可被單個模板對象訪問或調用。單個模板對象改變設置將只作用于該模板和其所包含的子模板。 <table width="100%" border="0" cellpadding="0" cellspacing="0" class="EXAMPLE"><tr><td> <div class="EXAMPLE"> <strong><a name="AEN4154" id="AEN4154"> </a>Example 15.4. changing Smarty settings by template<br/> 例15-4.通過模板更改Smarty設置</strong><strong/> <table border="0" bgcolor="#E0E0E0" width="100%"><tr><td>&lt;?php<br/> $tpl = $smarty-&gt;createTemplate('index.tpl);<br/> $tpl-&gt;cache_lifetime = 600;<br/> //or<br/> $tpl-&gt;setCacheLifetime(600);<br/> $smarty-&gt;display($tpl);<br/> ?&gt;</td></tr></table><p><strong>Example 15.5. register plugins by template<br/>例15-5.通過</strong><strong>模板注冊插件</strong></p> <table border="0" bgcolor="#E0E0E0" width="100%"><tr><td>&lt;?php<br/> $tpl = $smarty-&gt;createTemplate('index.tpl);<br/> $tpl-&gt;registerPlugin('modifier','mymodifier');<br/> $smarty-&gt;display($tpl);<br/> ?&gt;</td> </tr></table></div></td></tr></table> <table width="100%" border="0" cellpadding="0" cellspacing="0"><tr><td width="33%" align="left" valign="top"><a href="advanced.features.security.html">Prev</a></td><td width="34%" align="center" valign="top"><a href="index.html">Home</a></td><td width="33%" align="right" valign="top"> <a href="advanced.features.tem.inheritance.html">Next</a></td></tr><tr><td width="33%" align="left" valign="top">Security<br/> 安全</td><td width="34%" align="center" valign="top"><a href="smarty.for.programmers.html">Up</a></td><td width="33%" align="right" valign="top">Template Inheritance<br/> 模板繼承</td></tr></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>

                              哎呀哎呀视频在线观看