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

? PHP ????? YII yii2?? 500 ??? ??? ???? ??

yii2?? 500 ??? ??? ???? ??

Feb 20, 2020 pm 04:15 PM
500 yii2

yii2?? 500 ??? ??? ???? ??

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);
        }
    }
}

?? ????: yii Framework

2?? ? ??? ?????. errorHandler/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 "出錯(cuò)啦";}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 "出錯(cuò)啦";}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 ?? ???:

yii2?? 500 ??? ??? ???? ??

404 ?? ???:

yii2?? 500 ??? ??? ???? ??

??? ????? ?? ??? PHP ??? ????? ????? ?? ??? ??????!

? ??? yii2?? 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)

???

??? ??

?? ????
1783
16
Cakephp ????
1727
56
??? ????
1577
28
PHP ????
1442
31
???
yii2?? jquery? ???? ?? yii2?? jquery? ???? ?? Feb 17, 2023 am 09:55 AM

yii2?? jquery? ???? ??: 1. AppAsset.php ??? ???? $dependents ??? "yii\web\YiiAsset" ?? ?? ?????. 2. main.php ??? ???? ??? "'yii"? ?????. "comComponents" \web\JqueryAsset' => ['js' => [],'sourcePath' => null,]" ?? ???? jquery ????? ?????.

YII2?? ?? ????? ???? ?? YII2?? ?? ????? ???? ?? Apr 18, 2025 pm 11:09 PM

YII2?? ?? ????? ???? ? ?? ?? ??? ????. ??? yii :: $ app- & amp; gt; errorhandler- & amp; gt; exception ()? ???? ??? ??? ? ??? ???? ?? ???? ????. ?? ??? $ this- & amp; gt; adderror ()? ???? ???, ?? ?? ??? ??? ?? ? ? ??? ???? $ model- & amp; gt; getErrors ()? ?? ??? ??? ? ? ????. ???? if ($ errors = $ model- & amp; gt; getErrors ())? ??? ? ????.

500?? ?? ??? ??? ?????? 500?? ?? ??? ??? ?????? Feb 21, 2023 pm 03:39 PM

500 ?? ?? ??? HTTP 500 ?? ?? ??? ?????. ?? ??? ??? ?? ??? ???? ??? ??? ? ??? ?? ?? ? ?? ??? ??? ?? ??? ??? ? ??? ?????. ??? ????? ??? ?????.

YII2 ?????? ???? Redis ??? ???? ?? YII2 ?????? ???? Redis ??? ???? ?? May 26, 2023 pm 06:41 PM

1. Composer? ??? yii2-redis ??? ???? Windows ??? ?????? ???. 2. ??? ?? Vendor/yiisoft? ?????. 3. 'yiisoft/yii2-redis'=>array('name'=>'yiisoft ?? yiisoft /yii2-redis','version'=>'2.0 ??? Extensions.php?.

? ?? ??? CTF ??? yii2 ?????? ??? ? ??? ? ????! ? ?? ??? CTF ??? yii2 ?????? ??? ? ??? ? ????! Feb 23, 2022 am 10:33 AM

? ????? yii2 ?????? ???? ? ?? CTF ??? ???? ?? ???? yii2 ?????? ???? ?? ?? ???? ??? ??? ????.

????(ETH) ??? 2,320?? ???? ?????? ??? ??? ?? ?????? ????. ????(ETH) ??? 2,320?? ???? ?????? ??? ??? ?? ?????? ????. Sep 10, 2024 pm 03:20 PM

???? ??? 2,250?? ??? ?? ???? ??????. ETH? 2,280?? ?? ??? ???? ??? ???? ??? ? ???? ????? ?? ???? ?????.

????? £2,500 ??? ??? 50p ??? ??? ????? ??????. ????? £2,500 ??? ??? 50p ??? ??? ????? ??????. Oct 28, 2024 pm 04:20 PM

? ???? ??? 2011? ??? 2012? ?? ???? ???? ?? ??? ???? ???.

????(BTC) ?? ??: BTC? $60,000? ??? ??? ?? ???? ?????. ????(BTC) ?? ??: BTC? $60,000? ??? ??? ?? ???? ?????. Sep 12, 2024 pm 06:35 PM

????? $57,500 ???? ?? ??? ???? ????? ?? ????? $60,000 ?? ??? ???? ?? ??? ???? ????.

See all articles