<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之旅 廣告
                上次我們做好了后臺的兩條數據 如圖: ![](https://box.kancloud.cn/7e185a442c716b285622e7a2fad8fe84_1122x412.png) ### 我們這次就將這兩條后臺數據調用到前端view層 * guestbook + config.php + GuestbookPlugin.php + data - config.php - guestbook.sql + view(新增) - widget.html(新增) GuestbookPlugin.php ~~~ // 實現鉤子方法 public function guestbook($param) { $config = $this->getConfig(); $this->assign($config); echo $this->fetch('widget'); } ~~~ widget.html ~~~ <h1>{$desc}</h1> <br> <h1>{$messagesent}</h1> ~~~ 可以看出,我們通過getConfig方法取出了config,再用assign直接帶到模板中,在模板中,就直接寫里面的鍵值對就可以取出數據了 一般我會把hook鉤子放到首頁尾部測試 \public\themes\simpleboot3\public\footer.html ~~~ <div id="footer"> <hook name="guestbook"/> ~~~ 這樣就得到了后臺數據 ![](https://box.kancloud.cn/f0dcd600db829a3fb0ac8603bf34b65e_1498x400.png) ![](https://box.kancloud.cn/ab516ccc53713aab6ea518313b06ca4a_1391x411.png) ![](https://box.kancloud.cn/5da7f3b420c5dea7047e3c5cf09eb306_1311x393.png) > 首先感謝WelkinVan 他寫的《ThinkCMF5從入門到精通》給了我很多幫助 > 點擊去《[ThinkCMF5從入門到精通](http://www.hmoore.net/welkinvan/thinkcmf5)》 >
                  <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>

                              哎呀哎呀视频在线观看