xmatzx01
(Mathew Magante)
1
I wan’ t to add eye view when i add this code it nothing happen
<?php $this->widget(‘booster.widgets.TbGridView’, array(
'dataProvider'=>$dataProvider,
'columns'=>array(
'UserID',
'UserName',
'SystemID',
'Description',
'LastPasswordChange'
,'DateCreated'
,array(
'htmlOptions' => array('nowrap'=>'nowrap'),
'class'=>'booster.widgets.TbButtonColumn',
'viewButtonUrl'=>'Yii::app()->createUrl(\'userData/view&id=\'. $data->UserID)',
'updateButtonUrl'=>'Yii::app()->createUrl(\'userData/update&id=\'. $data->UserID)',
'template'=>'{view}{update}'
)
),
)); ?>
xmatzx01
(Mathew Magante)
3
sorry for a newbie question
oligalma
(Marc Oliveras)
4
try this
<?php $this->widget('booster.widgets.TbGridView', array(
'template'=>'{view}{update}',
'dataProvider'=>$dataProvider,
'columns'=>array(
'UserID',
'UserName',
'SystemID',
'Description',
'LastPasswordChange'
,'DateCreated'
,array(
'htmlOptions' => array('nowrap'=>'nowrap'),
'class'=>'booster.widgets.TbButtonColumn',
'viewButtonUrl'=>'Yii::app()->createUrl(\'userData/view&id=\'. $data->UserID)',
'updateButtonUrl'=>'Yii::app()->createUrl(\'userData/update&id=\'. $data->UserID)'
)
),
)); ?>
xmatzx01
(Mathew Magante)
5


when i put that code this will happen

xmatzx01
(Mathew Magante)
6
thanks a lot
I realize its a stupid question
i resolve this by change this ‘class’=>‘booster.widgets.TbButtonColumn’, to this
‘class’=>‘CButtonColumn’,
topic close