Hiya All.
I am starting a new project and i am using YiiBooster with Yii Bootstrap
I have an issue with creating a url link within the columns of the TbGridView.
$this->widget('bootstrap.widgets.TbGridView',array(
'type'=>'striped bordered condensed',
'id'=>'accounts-grid',
'dataProvider'=>$model->search(),
'columns'=>array(
array(
'name'=>'id',
'header'=>'ID',
'type'=>'raw',
'value'=>'$data->id',
'htmlOptions'=>array('width'=>'40'),
'url'=>'Yii::app()->createUrl("/meetings/view", array("id"=>$data["id"]))',
),
'name',
'phone',
'mobile',
'type',
'account_manager',
'status',
array(
'class'=>'bootstrap.widgets.TbButtonColumn',
),
),
));
The ‘url’ option doesn’t work and throws the following error.
"Property "TbDataColumn.url" is not defined."
I have tried ‘urlExpression’ as well.
Any ideas.
Thanks for your help in advance.
Regards
Liam