In the view that you wish to use add the following code for the back link.

CHtml::link('Back',Yii::app()->request->urlReferrer);