What is the difference between homeUrl and baseUrl in Yii framework?
Yii::app()->getBaseUrl(true); // => http://localhost/yii_projects
Yii::app()->getHomeUrl(); // => /yii_projects/index.php
Yii::app()->getBaseUrl(false); // => /yii_projects
This is the best practice in pointing directory of images etc. or the file itself rather than hardcoding the path which can change name"