<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國際加速解決方案。 廣告
                完整代碼: ~~~ <?php namespace plugins\d_comment; use cmf\lib\Plugin; use plugins\d_comment\model\CommentModel; class DCommentPlugin extends Plugin { public $info=[ 'name'=>'DComment', 'title'=>'D之食卓評論插件', 'description'=>'基于官網評論插件', 'status'=>1, 'version'=>'1.0.0', ]; public $hasAdmin = 1; public function install() { // TODO: Implement install() method. return true; } public function uninstall() { // TODO: Implement uninstall() method. return false; } public function dcomment($param) { $commentModel = new CommentModel(); $comment = $commentModel->where([ "table_name" => $param['table_name'], "object_id" => $param['object_id'], "status" => 1, ]) ->order('create_time DESC') ->paginate(10,false,['var_page'=>'comment_page']); $config = $this->getConfig(); $this->assign($config); $this->assign('param', $param); $this->assign('user', cmf_get_current_user()); $this->assign('page', $comment->render()); return $this->fetch('widget'); } } ~~~ 全是插件標準寫法,現解析dcomment內容 table_name 評論內容掛載在哪個表下,如:portal_post object_id 評論內容的id 僅僅用object_id不能定位唯一值,加上table_name就可以定位唯一了。這大大擴展了表的靈活性,使我們不僅僅局限于post一張表上 status 1為已審核 這里雖然寫了config屬性,但是其實我們并沒有config文件。 也就是說 我們不需要后臺傳值
                  <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>

                              哎呀哎呀视频在线观看