Hi
In home page i have a link for form3
and in another page(form2) i have a link for form3
i give a cancel button with following code
<?php echo CHtml::submitButton('Cancel',
array('name'=>'cancel',
'submit'=>array('holiday/home'),
'params'=>array('url'=>Yii::app()->user->returnUrl) ,
'confirm'=>'Are sure without Save/Modify/Delete Type?')); ?>
when i got form3 from form2 on clicking cancel on form3 it gives homepage, how to change it when i come from homepage it have to give homepage and when i come from form2 it should display form2
how