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?

enter image description here

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

Popular posts from this blog

How has firefox/gecko HTML+CSS rendering changed in version 38? -

javascript - Complex json ng-repeat -

jquery - Cloning of rows and columns from the old table into the new with colSpan and rowSpan -