久久久久久久视色,久久电影免费精品,中文亚洲欧美乱码在线观看,在线免费播放AV片

<center id="vfaef"><input id="vfaef"><table id="vfaef"></table></input></center>

    <p id="vfaef"><kbd id="vfaef"></kbd></p>

    
    
    <pre id="vfaef"><u id="vfaef"></u></pre>

      <thead id="vfaef"><input id="vfaef"></input></thead>

    1. 站長(zhǎng)資訊網(wǎng)
      最全最豐富的資訊網(wǎng)站

      yii2如何自定義錯(cuò)誤頁(yè)面?

      yii2自定義錯(cuò)誤頁(yè)面的方法:1、在“views/site/error.php”中設(shè)置錯(cuò)誤頁(yè)面的樣式;2、在“config/main.php”中,修改配置文件,使用“'errorAction'=>'site/error',”語(yǔ)句進(jìn)行調(diào)用。

      yii2如何自定義錯(cuò)誤頁(yè)面?

      在Yii2版本的advanced高級(jí)模板環(huán)境中,自定義404錯(cuò)誤頁(yè)面:

      1、views/site/error.php,設(shè)置錯(cuò)誤頁(yè)面樣式

      <?php $this->context->layout = false; //不使用布局,或者改為自己所需要使用的布局 ?> <div class="site-error">     <h1>404錯(cuò)誤</h1> </div>

      2、修改應(yīng)用的配置文件:config/main.php

      'errorHandler' => [ 'errorAction' => 'site/error',  ],

      相關(guān)文章教程推薦:《yii框架教程》、《PHP教程》

      贊(0)
      分享到: 更多 (0)
      網(wǎng)站地圖   滬ICP備18035694號(hào)-2    滬公網(wǎng)安備31011702889846號(hào)