Redirect Script in Yii

When we try to load one page, we can redirect that request to another page. Yii framework support redirection method. Yii redirect function is used to redirect the one controller action to another controller action and also we can redirect within controller. The types of redirections are

Redirect Anywhere

// We can redirect anywhere in application
// We can redirect anywhere in application with parameter

Redirect Within Controller

//Redirect within controller

Redirect Between Controller

//Redirect between controller