<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國際加速解決方案。 廣告
                插件規則及簡單制作: 1、首先插件名稱與其他插件不要沖突 2、起名可采用駝峰結構 3、插件名稱、文件夾名稱及插件類名、插件name保持一致,例如我們建立一個helloworld的插件,那么我們首先在plugins文件夾下建立一個helloworld文件夾,之后建立一個helloworld.php文件,文件內容如下: ``` <?php /** * @authors 5iSNS實驗室 (admin@5isns.com) * @date 2019-05-12 15:53:22 * @version 1.0.0 */ class helloworldextends plugin { public function __construct() { } /** * 插件基本信息 */ public function addonInfo() { return [ 'name' => 'helloworld', 'cnname' => '這里是插件名稱', 'description' => '這里是插件描述', 'author' => '作者名稱', 'version' => '版本號,如1.0', ]; } public function install(){ $arr=$this->addonInfo(); $this->installAddon($arr); } public function uninstall(){ $arr=$this->addonInfo(); $this->uninstallAddon($arr); } public function show() { } } ``` 可以看到我們在四個地方都保持了helloworld這個名稱的一致。 到這里我們就建立好了一個插件了。 最下邊你可以寫你想寫的函數,不一定就是show這個名字,你可以叫他jjjj,也可以是kkkk,隨便你了。 我們該如何調用呢? 首先在保證后臺啟用的前提下,在前臺任意位置調用: ``` $plugin->run('helloworld','你的函數名'); ``` 就可以了。在模板中調用時加上 ``` <?php $plugin->run('helloworld','你的函數名'); ?> ```
                  <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>

                              哎呀哎呀视频在线观看