Tuesday, June 23, 2015

Yii 1.1 path

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

About

Blogger templates