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?
CHtml::link('Back',Yii::app()->request->urlReferrer);
Brand new for this Framework.
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. :)
Source: https://habr.com/ru/post/1717358/More articles:PHP - SESSION multidimensional array - good or bad idea for performance? - arraysPDOs don't run the same queries twice? - phpA few questions about x86 - assemblyIs the System.MessageQueue (MSMQ) message lost if my function does not work while processing it? - c #Why does the "enable-shared failed" error occur in libjpeg build for os X? - pythonSocial network development - asp.netMicrosoft Anti-Cross Site Script Library - asp.netHow to make MySQL MAX () consider NULL the smallest possible value? - nullWhat is the best way to clear information from the public? - securityУсловная вставка в SqlServer Compact Edition - sqlAll Articles