Monday, February 1, 2016

yii getBaseUrl and getHomeUrl

Yii::app()->getBaseUrl(true);   // => http://localhost/yii_projectsYii::app()->getHomeUrl();       // => /yii_projects/index.php
Yii::app()->getBaseUrl(false);  // => /yii_projects

About

Blogger templates