I have created an array in php.
Array
(
[0] => Array
(
[ip_addr] => 152.12.40.205
[Management_col-2] => Success
[Management_col-3] => Success
)
[1] => Array
(
[ip_addr] => 152.12.40.206
[Management_col-2] => Success
[Management_col-3] => Error
)
[2] => Array
(
[ip_addr] => 152.12.40.207
[Management_col-2] => NA
[Management_col-3] => Success
)
[3] => Array
(
[ip_addr] => 152.12.40.209
[Management_col-2] => Success
[Management_col-3] => Success
)
);
I will have dynamic columns like ip_addr, Management_col-2, ....and so on with there respective dynamic values.
I want to use it in Grid view of YII.
$nc3DataProvider = new CArrayDataProvider($alldata);
$this->widget('zii.widgets.grid.CGridView', array(
'id' => 'nc3-audit-grid',
'dataProvider' => $nc3DataProvider,
));
I also want to use filter on the table.
Plz help me for this.
Thank you so much in advance.