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

                ??一站式輕松地調用各大LLM模型接口,支持GPT4、智譜、豆包、星火、月之暗面及文生圖、文生視頻 廣告
                大家先看圖 [![](https://box.kancloud.cn/eea3ab5ca3c0eea3a306bba600b19ba9_1442x980.png)](https://box.kancloud.cn/eea3ab5ca3c0eea3a306bba600b19ba9_1442x980.png) 比如像這樣一個網址 `http://qb.net/index.php/qun/cms/index/aid/45/mid/1.html` 其中`qun`后面的`cms`代表是cms頻道 在相應頻道的前臺程序文件目錄,比如 `\application\cms\index\` 目錄下面創建一個`Qun.php`文件, 這個文件是固定的,僅有這一個. 如果不做邏輯處理,可以不需要創建這個接口PHP文件。只做模板即可,不需要程序文件。一般情況是不需要創建的。 ![](https://box.kancloud.cn/ceff6ce5f6f8c71bf7030c32543df2ca_598x328.png) 里邊的內容如下 ~~~ <?php namespace app\cms\index; use app\common\controller\IndexBase; /** *圈子接口 */ class Qun extends IndexBase { public function index($info=[]){ $array = [ 'xxx'=>'測試變量的傳遞,當前圈子名稱是:'.$info['title'], ]; return $array; } } ~~~ 如果是其它頻道的話,就把第二行的 `cms` 換成其它頻道的目錄名 其中的方法名`index`對應下面URL中的`cms`后面的`index` ,相互對應即可,名字可隨意 `http://qb.net/index.php/qun/cms/index/aid/45/mid/1.html` 目前方法只有一個參數 即`$info`圈子信息, 更多參數請使用類似下面的方法獲取. ~~~ $array = input(); $id = $array ['id']; ~~~ 這里不需要 `return $this->fetch();` 這里可以 返回數組,比如 `return $array; ` 這個數組的內容是傳遞到模板里邊使用的。 比如 ~~~ $array = [ 'abcd'=>55; ]; return $array; ~~~ 那么在模板中,就可以使用此變量,比如 `{$abcd}`
                  <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>

                              哎呀哎呀视频在线观看