s0mk3t
(Jorge Martinez Perez1990)
1
Hello! I have a new problem i wanna place in CGridView a link for go back, i tried this:
array(
'type'=>'html',
'label' => 'Back',
'value' => CHtml::link('Back', 'javascript:history.go(-1)'),
),
But in source code (html) appear this:
<a>Back</a>
Any one can help me??
Thanks
instead of ‘value’ try ‘url’ attribute
s0mk3t
(Jorge Martinez Perez1990)
3
This say me: Not Set, and this result dont is a link…
Gasim
(G Gasimzada)
4
Put quotes around value:
'value'=>'CHtml::link("Back", "javascript:history.go(-1)")',
and btw there is a JS function history.back()