$this->render('view', array(
'hours' => $object->hours,
));
hours is an array of the type array('Name'=>200)
What I am trying to achieve is in the view I am rendering CGridView and in one of the columns I would like to display the hours to the respective name. Now in the CGridView I have a column which displays the name and another which should display the hours. How can I inject the array which was passed from the controller so I can display a value of the respective name.
Here is the columns section which I am struggling with:
array('name'=>'team', 'type'=>'raw', 'header'=>'Team'),
array('name'=>'hours', 'header'=>'Hours', 'value'=>............),
Cheers.

Help
















