'columns'=>array(
:
array(
'class'=>'CLinkColumn',
'labelExpression'=>'$data->code', // this line is fine!
'url'=>array(
'member/admin',
'code'=>'$data->code', // this line is NG!
),
:
It is not working because 'url' parameter does not recognize '$data' keyword, though I would like to link this item to 'actionAdmin' of 'MemberController' having dynamic 'code' parameter.I actually did following but failed because urlExpression does not recognize array structure on the other hand.
'columns'=>array(
:
array(
'class'=>'CLinkColumn',
'labelExpression'=>'$data->code', // this line is fine!
'urlExpression'=>array( // this line is NG!
'member/admin',
'code'=>'$data->code',
),
:
Is there any good way to do it?
// I have found an ugly WA though...

Help














