Instead of {{ VALOR DO ID }}
I would like to place the ID
of the respective user. Seeing that this is a Row
of a Grid
.
<?php $this->widget('zii.widgets.grid.CGridView', array(
'id'=>'usuario-grid',
'dataProvider'=>$model->search(),
'filter'=>$model,
'columns'=>array(
'idUsuario',
'nome',
'email',
array(
'class'=>'CButtonColumn',
'template'=>'{view}{update}{delete}',
'buttons'=>array (
'view' => array (
'options'=> array (
'data-url' => Yii::app()->controller->createUrl("view", array("id" => {{ VALOR DO ID }} )),
),
'click'=>'function(){
$(".content").load($(this).data("url"));
}',
'url'=>'"#"',
),
),
),
),
)); ?>