Yii redirect method

{Redirect to HomePage}
$this->redirect(Yii::app()->homeUrl);
{Redirect to Module ‘Admin’}
$this->redirect(array('/Admin'));
{Redirect to Contorller/Action}
$this->redirect(array('post/view'));

Leave a comment

Your email address will not be published. Required fields are marked *