<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 summary="Header navigation 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="template.resources.html" accesskey="P">Prev</a></td><td width="50%" align="center" valign="bottom"/><td width="25%" align="right" valign="bottom"><a href="plugins.naming.conventions.html" accesskey="N">Next</a></td></tr></table> # Chapter 16. Extending Smarty With Plugins第十六章.以插件擴展Smarty **Table of Contents**[How Plugins Work](#) 插件如何工作[Naming Conventions](#) 命名約定[Writing Plugins](#) 編寫插件[Template Functions](#) 模板函數插件[Modifiers](#) 調節器[Block Functions](#) 塊函數插件[Compiler Functions](#) 編譯函數插件[Prefilters/Postfilters](#) 預濾器/后濾器插件[Output Filters](#) 輸出過濾器插件[Resources](#) 資源插件[Inserts](#) 嵌入插件 Version 2.0 introduced the plugin architecture that is used for almost all the customizable functionality of Smarty. This includes: With the exception of resources, backwards compatibility with the old way of registering handler functions via register_* API is preserved. If you did not use the API but instead modified the class variables $custom_funcs, $custom_mods, and other ones directly, then you will need to adjust your scripts to either use the API or convert your custom functionality into plugins. 2.0版本引入了被廣泛應用于自定義Smarty函數功能的插件架構。它包括如下類型: - functions 函數插件 - modifiers 調節器插件 - block functions 塊函數插件 - compiler functions 編譯函數插件 - prefilters 預濾器插件 - postfilters 后濾器插件 - outputfilters 輸出過濾器插件 - resources 資源插件 - inserts 嵌入插件 除資源插件外,插件架構向后兼容了通過register_* API注冊處理函數的方式。如果你不用API,而是使用直接修改類變量$custom_funcs、$custom_mods等的方法,那么你就需要修改你的程序了。或者使用API的方法,或者將你的自定義函數轉換成插件。 譯注 | 上述register_* API函數,應是register* API函數,因為從3.0版本以后Smarty改用了駝峰式類方法的命名方式,unregister_* API函數也屬這類。以下不贅述。 | |-----| <table summary="Footer navigation table" width="100%" border="0" cellpadding="0" cellspacing="0"><tr><td width="33%" align="left" valign="top"><a href="template.resources.html" accesskey="P">Prev</a></td><td width="34%" align="center" valign="top"><a href="index.html" accesskey="H">Home</a></td><td width="33%" align="right" valign="top"><a href="plugins.naming.conventions.html" accesskey="N">Next</a></td></tr><tr><td width="33%" align="left" valign="top">Resources<br/> [資源] </td><td width="34%" align="center" valign="top"><a href="smarty.for.programmers.html" accesskey="U">Up</a></td><td width="33%" align="right" valign="top">Naming Conventions<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>

                              哎呀哎呀视频在线观看