Having a problem and i believe you will help me .Thanks in advance.
Here is my problem
On Index page i have a checkboxlist an i want it to be filled when index page loads.See the attached file.
I am thinking to do it either of two ways.
1)first create a join query here
public function actionIndex()
{
$this->dataProvider=new CActiveDataProvider('Media',array(
'criteria'=>array('order'=>'id DESC')));
2)call a controller method in CActiveDataProvider.
Please suggest me the best way or how can i create a join query.
Attached File(s)
-
yii.png (11.69K)
Number of downloads: 12

Help












