創建鏈接我在Yii框架初學者,我想用一個字段idAccounts.name
鏈接CGridView與CGridView
$post= Sheduale::model()->search();
$this->widget('zii.widgets.grid.CGridView', array(
'id'=>'users-grid',
'dataProvider'=>$post,
'columns'=>array(
'idAccounts.TypeId',
'idAccounts.name',
'start',
'end',
array(
'class'=>'CButtonColumn',
),
),
));
非常感謝,我希望 – Muzaffarich 2015-02-12 05:42:02