18 if (isset(Yii::app()->params[
'customViews']) && Yii::app()->params[
'customViews'] ==
true) {
19 $customSection = realpath(Yii::getPathOfAlias(
'site.custom'));
20 $commonSection = realpath(Yii::getPathOfAlias(
'site.common'));
21 $frontendSection = realpath(Yii::getPathOfAlias(
'site.frontend'));
22 $customView = str_replace(array($commonSection, $frontendSection), $customSection, $viewFile);
23 if (file_exists($customView)) {