Creating a backlink using the Yii Framework?

I need to know how to create a backlink in the action view of the Yii Framework.

I want to use CHtml::link('Back',Yii::app()->request->urlReferrer);, but somehow it just doesn’t want to work?

Brand new for this Framework.

+3
source share
1 answer

If I test it, I did not see the "Back" -Text .: (

-> But, if you want to see the link, just use "echo" before CHtml:

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

This works great. :)

+7
source

Source: https://habr.com/ru/post/1717358/


All Articles