I have an array,
[b]Array
(
[43] => Array
(
[basicProfile] => Array
(
[id] => 1
[user_id] => 1
[first_name] => TNC
)
)
)[/b]
I want to make an array provider so that i fed this to CGridView. So i write as;
[b]$this->widget(‘zii.widgets.grid.CGridView’, array(
'id'=>'area-grid',
'dataProvider'=> new CArrayProvider(array($array)),
'columns'=>array(
'user_id',
'first_name',
),
));[/b]
$array is my variable containing the above data. This throws an undefined offset exception. Any help?