Yii Reference 1 – Create Url, Links and Redirections 

This post will be a reference on how deal with urls, links and browser redirects in Yii Framework. It will guide you on how to use different built-in functions in Yii like createUrl(), createAbsoluteUrl(), CHtml::link(), redirect().

Create URL

$url = Yii::app()->createUrl('site/index');

(More …)