Hello,
I want to open link in new windows not in the same window.
'url'=>'Yii::app()->createUrl("/item/reposition")'
How can I do it ?
Thanks,
Hello,
I want to open link in new windows not in the same window.
'url'=>'Yii::app()->createUrl("/item/reposition")'
How can I do it ?
Thanks,
well, not with PHP, you will have to use the onclick= of a button to do a window.open() or by rendering that javascript on your view http://www.javascript-coder.com/window-popup/javascript-window-open.phtml
I am using zii.widgets.grid.CGridView , So I want to use button with link in external window.
Thanks,
This should work:
$url = Yii::app()->createUrl('/item/reposition');
$link = CHtml::link('Click this.', $url, array('target'=>'_blank'));
Thanks , I will try.