0
我用CButtonColumn這個樣子:自定義CButtonColumn
<?php $this->widget('zii.widgets.grid.CGridView', array(
'id'=>'user-grid',
'dataProvider'=>$model->search(),
'filter'=>$model,
'pager' => array(
'firstPageLabel' => '<<',
),
'columns'=>array(
'username',
'name',
'email',
'creationDate',
array(
'class' => 'CButtonColumn',
'template' => '{change} {view}',
'button' => array(
'change' => array(
'url' => 'aaaaaaaa',
),
),
)
),
)); ?>
,我得到了一個錯誤:
Use of undefined constant aaaaaaaa - assumed 'aaaaaaaa'
我怎麼能cusomize CButtonColumn正確?
我需要的URL設置爲其他外部頁面。我可以像這樣使用http鏈接:'http:// test.com/user/view/id/24'嗎? – Chalist