<bdo id="5ckzs"></bdo><rt id="5ckzs"></rt>

      <label id="5ckzs"></label>
    1. \n
      \n    <\/div>\n    
      \n        

      getCode())&&($exception->getCode() == 8)){echo \"出錯啦\";}else{ echo $exception->getMessage();}?><\/p>\n    <\/div>\n<\/div>\n<\/body>\n<\/html><\/pre>

      <\/p>

      3. ?????? ?? ?? ??: @app\/config\/main.php<\/p>

              'errorHandler' => [\n            \/\/'errorAction' => 'site\/error',\n            'class' => 'common\\component\\exception\\ErrorHandler',\n        ],<\/pre>

      <\/p>\n

      ??? ??? ????? ? ? ?? ?????. <\/p>\n

      500 ??. ???: <\/p>\n

      \"yii<\/p>\n

      404 ?? ???: <\/p>\n

      \"yii<\/p>"}

      国产av日韩一区二区三区精品,成人性爱视频在线观看,国产,欧美,日韩,一区,www.成色av久久成人,2222eeee成人天堂

      ? PHP ????? YII yii 500 ?? ??? ??

      yii 500 ?? ??? ??

      Jan 11, 2020 am 10:57 AM
      yii

      yii 500 ?? ??? ??

      yii 500 ?? ??? ??

      yii2 ??? ?? 500 ??

      ?????? ?? ?? ????? ????? ?? ??? ? ? ??? ???? ??? 500 ??? ??? ????. , ?? ??? ??? ?? ???? ?????? ???.

      ?? ??: yii ?????

      ? ???? ?? ? ??? ?? ???? ?????? ??? ?? ?????: http://tech. .com/2015/12/12/yii2-0 ?????? ?? ? ?? ?? ????/

      ?? ?? ?? ??? ??? ???? ?? ?? yiibaseErrorHandler? ???? ??? ??? renderException? ???? ????? ?? ? ?? $config?? ???? errorHandler? ??? ?????

      1. ErrorHandler? ??? ? yiibaseErrorHandler ?? ???? ??? ?? ? ?? ???

      <?php
      namespace common\component\exception;
      /**
       * User: szliugx@gmail.com
       * Date: 2016/9/20
       * Time: 14:24
       */
      use yii;
      use yii\base\ErrorHandler as BaseErrorHandler;
      use common\component\earlywarning\EarlyWarning;
      class ErrorHandler extends BaseErrorHandler
      {
          public $errorView = &#39;@app/views/errorHandler/error.php&#39;;
          public function renderException($exception)
          {
              if(Yii::$app->request->getIsAjax()){
                  exit( json_encode( array(&#39;code&#39; =>$exception->getCode(),&#39;msg&#39;  =>$exception->getMessage()) ));
              }else{
                  //將500的代碼,發(fā)送監(jiān)控預(yù)警
                  if(!empty($exception->getCode()) && $exception->getCode() ==8){
                      $params = [];
                      $params[&#39;projectName&#39;] = "oct-youban";
                      $params[&#39;level&#39;] = 5;
                      $params[&#39;title&#39;] = "500:".$exception->getMessage();
                      $params[&#39;value&#39;] = $exception->getCode();
                      $params[&#39;message&#39;] = $exception->getFile().":".$exception->getLine();
                      $params[&#39;bizcode&#39;] = 8;
                      $params[&#39;subcode&#39;] = 8001;
                      EarlyWarning::WarninApi($params);
                  }
                  echo  Yii::$app->getView()->renderFile($this->errorView,[&#39;exception&#39; => $exception,],$this);
              }
          }
      }

      ?? ?? ???? ?????.

      2. error.php

      <?php
      /**
       * User: szliugx@gmail.com
       * Date: 2016/9/20
       * Time: 15:23
       */
      ?>
      <!DOCTYPE html>
      <html>
      <head>
          <meta charset="UTF-8">
          <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
          <meta name="apple-mobile-web-app-capable" content="yes">
          <meta name="apple-mobile-web-app-status-bar-style" content="black">
          <meta name="format-detection" content="telephone=no">
          <meta http-equiv="Expires" content="-1">
          <meta http-equiv="Cache-Control" content="no-cache">
          <meta http-equiv="Pragma" content="no-cache">
          <title><?php if(!empty($exception->getCode())&&($exception->getCode() == 8)){echo "出錯啦";}else{ echo $exception->getMessage();}?></title>
          <link href="/css/error.css" rel="stylesheet" 0="frontend\assets\AppAsset">
      </head>
      <body>
      <div>
          <div class="status-icon icon-desk"></div>
          <div>
              <p><?php if(!empty($exception->getCode())&&($exception->getCode() == 8)){echo "出錯啦";}else{ echo $exception->getMessage();}?></p>
          </div>
      </div>
      </body>
      </html>

      3. ?????? ?? ?? ??: @app/config/main.php

              &#39;errorHandler&#39; => [
                  //&#39;errorAction&#39; => &#39;site/error&#39;,
                  &#39;class&#39; => &#39;common\component\exception\ErrorHandler&#39;,
              ],

      ??? ??? ????? ? ? ?? ?????.

      500 ??. ???:

      yii 500 ?? ??? ??

      404 ?? ???:

      yii 500 ?? ??? ??

      ? ??? yii 500 ?? ??? ??? ?? ?????. ??? ??? PHP ??? ????? ?? ?? ??? ?????!

      ? ????? ??
      ? ?? ??? ????? ???? ??? ??????, ???? ?????? ????. ? ???? ?? ???? ?? ??? ?? ????. ???? ??? ???? ???? ??? ?? admin@php.cn?? ?????.

      ? AI ??

      Undresser.AI Undress

      Undresser.AI Undress

      ???? ?? ??? ??? ?? AI ?? ?

      AI Clothes Remover

      AI Clothes Remover

      ???? ?? ???? ??? AI ?????.

      Video Face Swap

      Video Face Swap

      ??? ??? AI ?? ?? ??? ???? ?? ???? ??? ?? ????!

      ???

      ??? ??

      ???++7.3.1

      ???++7.3.1

      ???? ?? ?? ?? ???

      SublimeText3 ??? ??

      SublimeText3 ??? ??

      ??? ??, ???? ?? ????.

      ???? 13.0.1 ???

      ???? 13.0.1 ???

      ??? PHP ?? ?? ??

      ???? CS6

      ???? CS6

      ??? ? ?? ??

      SublimeText3 Mac ??

      SublimeText3 Mac ??

      ? ??? ?? ?? ?????(SublimeText3)

      ???

      ??? ??

      ??? ????
      1601
      29
      PHP ????
      1502
      276
      ???
      Yii2 vs Phalcon: ??? ??? ?????? ??? ?? ?????? ? ???? Yii2 vs Phalcon: ??? ??? ?????? ??? ?? ?????? ? ???? Jun 19, 2023 am 08:09 AM

      ?? ??? ???? ????, ????, ???? ??? ?? ??? ?? ??? ??? ?????. ??? ??? ??? ??? ??? ?? ???? ??? ?? ??? ??? ?? ??? ?? ??. ??? ?? ??? ??? ?? ??, ?? ? TV ?? ??, ????? ??? ? ?? ???? ?? ?????. ????? ??? ????? ??? ?????? ???? ?? ?? ??? ?????. ?? ?? ??? PHP? Yii2, Ph? ?? ??? PHP ????? ? ?? ???? ?????.

      Yii ?????? ??? ??: ???? ????? ??? Yii ?????? ??? ??: ???? ????? ??? Jun 21, 2023 am 11:22 AM

      Yii ?????? ? ?????? ?? ????? ????? ?? ??? ??? ?? ??? ???? ?? ?? PHP ? ?????? ????????. ??? ??? ??? ?? ?? ? ?????. Yii ???????? SQL? ??? ??? ???? ??????? ????? ???? ????? ???? ??? ? ????. Yii ?????? ?? ???? ?? ActiveRecord ??, QueryBuilder ??, ?? ?? ? ?? SQL ?? ??? ?????.

      Symfony vs Yii2: ??? ? ?????? ??? ?? ?????? ? ???? Symfony vs Yii2: ??? ? ?????? ??? ?? ?????? ? ???? Jun 19, 2023 am 10:57 AM

      ? ??????? ?? ??? ?? ???? ?? ???? ?? ?????? ??? ? ?? ? ?? ???? ?? ?????. Symfony? Yii2? ? ?? ?? ?? PHP ????????. ? ? ??? ??? ??? ??? ??? ??? ? ??????? ???? ?? ?? ?? ?????? ? ?????? ???? ? ?? ??? ?? ? ??? Symphony? Yii2? ?? ??? ???????. ?? ?? Symphony? PHP? ??? ?? ?? ? ?????? ??????? ??? ???? ???.

      PHP ????? Yii? ???? ???? ???? ?? ???? ???? ?? PHP ????? Yii? ???? ???? ???? ?? ???? ???? ?? Jun 27, 2023 am 09:04 AM

      ???? ??? ??? ????? ????? ??? ??? ?? ??? ??? ?? ? ?? ?????. ??? ???? ???? ?? ???? ?? ???? ???? ?? ?? ?????. PHP ????? Yii? ???? ??? ? ??????? ??? ???? ? ??? ?? ??? ????????. ??? Yii ?????? ???? ???? ???? ?? ???? ???? ??? ?????. ?????? ?? ?? Yii ??????? ?????? ??? ?? ??? ?????. ??? ?? ????? ?? ???? ??? ???? ???

      PHP ??? ?? Laravel? YII? ???? ?????? PHP ??? ?? Laravel? YII? ???? ?????? Apr 30, 2025 pm 02:24 PM

      Laravel? YII? ?? ???? ?? ??, ??? ?? ? ?? ???????. 1. Laravel? ??? ???? ???? ????? Eloquentorm ? Artisan ??? ?? ??? ??? ???? ?? ?? ? ????? ?????. 2.YII? ??? ???? ????, ? ?? ??????? ????, ???? Activerecord ? ?? ???? ????? ??? ?? ??? ????.

      Docker?? YII : ?? ???? ????? ? ?? Docker?? YII : ?? ???? ????? ? ?? Apr 02, 2025 pm 02:13 PM

      Docker? ???? YII ??????? ??????? ???? ???? ??? ?????. 1. Dockerfile? ???? ??? ?? ????? ?????. 2. DockerCompose? ???? YII ?? ???? ? MySQL ??????? ??????. 3. ??? ?? ? ??? ???????. ???? ?? ?? ???? ??? ????? ??? ??? ??? ???? ?? Dockerfile? ?? ??? ?? ??? ???? ?? ?????.

      Yii2 vs Symfony: API ??? ?? ?????? ? ???? Yii2 vs Symfony: API ??? ?? ?????? ? ???? Jun 18, 2023 pm 11:00 PM

      ???? ??? ???? ?? API? ??? ?????? ?? ???? ???? ??? ??? ?????. ??? ?? ??? ?? ????? ???? API ?????? ???? ?? ?? ? ????? ????. API ?????? ??? ? Yii2? Symfony? ???? ???? ?? ?? ? ?? ?????. ???? API ???? ?? ?? ? ?????? ? ????? ? ? ?????? ???? ? ?? ??? ?????. 1. ?? ?? Yii2? Symfony? ??? ??? ? ?? ?? ?? ??? ?? ??? PHP ????????.

      Yii2 ????? ???: Cron ??? ?? ?? Yii2 ????? ???: Cron ??? ?? ?? Sep 01, 2023 pm 11:21 PM

      "Yii? ??????"?? ???? Yii? ??? ???? 2014? 10?? ??? Yii 2.0? ??? ??? ???? ???? ?? ????? Yii ????? ??? ?????. ?> ?? Yii2 ????? ?????? Yii2PHP ?????? ???? ??? ????? ???????. ?? ??????? Yii? ?? ??? ???? ?? ??? ???? ??? ???????. ???? cron ???? ? ??? ?? URL? wget? ???? ????? ??? ??????. ?? ?? ?? ??? ???? ?? ?? ??? ?????. Security for Startup ????? ??? ???? ? ?? ??? ???? ?? ?? ?? ???? ???? ?????.

      See all articles