Yii::app()->getBaseUrl(true); // => http://localhost/sample
Yii::app()->getHomeUrl(); // => /sample/index.php
Yii::app()->getBaseUrl(false); // => /sample
Yii::app()->request->baseUrl // => /sample
Yii::app()->theme->baseUrl //=> sample/themes/bluetheme