<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國際加速解決方案。 廣告
                ### 靜態資源引用 >[danger] Yii自帶的Assets功能極大的增加了學習成本,因此暫定去除此功能。 >請參考 http://www.yiichina.com/doc/guide/2.0/structure-assets 1. 明確web目錄下assets、css、js、images這幾個目錄的作用。 2. 新建web\lib目錄,把第三方資源庫放到這個目錄中。 3. 修改母版頁代碼。 ~~~ //AppAsset::register($this); # 頭部 <?php $this->head() ?> <?= Html::cssFile('@web/lib/bootstrap/css/bootstrap.min.css') ?> <?= Html::cssFile('@web/css/bootstrap-theme.css') ?> <?= Html::cssFile('@web/css/site.css') ?> # 尾部 <?= Html::jsFile('@web/lib/jquery/jquery.min.js') ?> <?= Html::jsFile('@web/lib/bootstrap/js/bootstrap.min.js') ?> <?= Html::jsFile('@web/lib/yii/yii.js') ?> <?= Html::jsFile('@web/lib/yii/yii.activeForm.js') ?> <?= Html::jsFile('@web/lib/yii/yii.validation.js') ?> <?= Html::jsFile('@web/js/site.js') ?> <?php if (isset($this->blocks['script'])): ?> <?= $this->blocks['script'] ?> <?php endif ?> <?php $this->endBody() ?> </body> ~~~ ### 改造Navbar >[success] 避免使用Widgets控件,盡量做到前后端分離。 ~~~ <nav class="navbar navbar-inverse navbar-fixed-top"> <div class="container"> <div class="navbar-header"> <a href="<?= Yii::$app->homeUrl ?>" class="navbar-brand">My Company</a> </div> <ul class="nav navbar-nav navbar-right"> ... </ul> </div> </nav> ~~~ ### 數據塊 默認數據塊:$content 自定義數據塊: 1、在母版頁中 ~~~ <?php if (isset($this->blocks['script'])): ?> <?= $this->blocks['script'] ?> <?php else: ?> ... 默認內容 ... <?php endif ?> ~~~ 2、在內容View中 ~~~ <?php $this->beginBlock('script'); ?> ...content of script block... <?php $this->endBlock(); ?> ~~~
                  <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>

                              哎呀哎呀视频在线观看