Yii Framework Forum: Link Bootstrap Tbgridview Data... - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Link Bootstrap Tbgridview Data... url problem Rate Topic: -----

#1 User is offline   nhexia 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 16
  • Joined: 15-November 12

Posted 06 December 2012 - 09:56 PM

need help, add link bootstrap TbGridView data...

i try something like this, but result "Property "TbDataColumn.url" is not defined. "

'
columns'=>array(
       array(
           'name'=>'bl_no',
           'value'=>'$data->bl_no',
           'url'=>'seaSalesMonitoring/view&id=$data->bl_no',
       ),
)

any idea? thanks in advance
0

#2 User is offline   Anthony Gough 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 52
  • Joined: 29-October 12

Posted 06 December 2012 - 10:47 PM

Try:
array(
		'name'=>'bl_no',
		'type'=>'raw',
		'value'=>'CHtml::link($data->bl_no, array("seaSalesMonitoring/view","id"=>$data->bl_no))',
	),

The trick is to use 'type'=>'raw'
0

#3 User is offline   nhexia 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 16
  • Joined: 15-November 12

Posted 07 January 2013 - 05:20 AM

View PostAnthony Gough, on 06 December 2012 - 10:47 PM, said:

Try:
array(
		'name'=>'bl_no',
		'type'=>'raw',
		'value'=>'CHtml::link($data->bl_no, array("seaSalesMonitoring/view","id"=>$data->bl_no))',
	),

The trick is to use 'type'=>'raw'



thanks Anthony, :D
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users