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