php - Show my own errors while any system error occurs in YII -
i need show own error messages while system error come.
i using yii framework
modular directory.
i don't want show error below image end users. instead of below error want show own errors text. possible?
below code index.php
<?php // change following paths if necessary $yii=dirname(__file__).'/../framework/yii.php'; $config=dirname(__file__).'/protected/config/main.php'; // remove following lines when in production mode defined('yii_debug') or define('yii_debug',false); # true in while dibuging @$shok // specify how many levels of call stack should shown in each log message defined('yii_trace_level') or define('yii_trace_level',3); require_once($yii); yii::createwebapplication($config)->run(); ?>
Comments
Post a Comment