<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 功能強大 支持多語言、二開方便! 廣告
                ### 插件鉤子 [上一頁](# "上一頁")[下一頁](# "下一頁") 鉤子是插件執行的觸發器;插件就像掛在鉤子上的東西; 插件只有實現相應鉤子方法,并安裝啟用成功后才能執行; ThinkCMF系統內置了很多鉤子;[http://www.thinkcmf.com/document/hooks.html](http://www.thinkcmf.com/document/hooks.html)? 開發者也可以用hook('test')方法在控制器只加入鉤子,讓你的應用具有更好的擴展性; 同時也可以模板里加入鉤子{:hook('footer')}; 鉤子也支持傳入參數hook('footer',array('test'=>1)); **向系統暴露你的鉤子** **暴露應用控制器鉤子:** 在你的應用根目錄加上hooks.php文件 文件中返回此應用所有鉤子數組就可以了; 如portal應用: ![untitled1.png](http://www.thinkcmf.com/data/upload/ueditor/54aa91de3ca54.png "untitled1.png") hooks.php文件內容 ~~~ <?php return?array( //'test', ); ~~~ **暴露你的模板鉤子:** 在你的模板根目錄加上hooks.html文件; 在此文件中用英文逗號分開此模板所有的鉤子就可以了; 如simplebootx模板: ![untitled1.png](http://www.thinkcmf.com/data/upload/ueditor/54aa9283b5d3a.png "untitled1.png") hooks.html文件內容: ~~~ footer,footer_end ~~~ [上一頁](# "上一頁")[下一頁](# "下一頁")
                  <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>

                              哎呀哎呀视频在线观看