Yii: Exception Error not rendering view nor layout outside an action

Because there are certain validations need to be done before an action is run, a new controller component is added to do such validations to avoid repeating codes. However, the page is not displayed properly as per error view file if there is exception error. eg, if done in an action function in controller/DefaultController.php, this…

Continue Reading »