Hi all.... i am getting an error in cakephp: Error: Cannot use string offset as an array
the lines associated with this error are
foreach($items as $row){
$categoryId = $row['Category']['id'];
$item_id = $row['Item']['id'];
$attr_id = $row['Attribute']['id'];
if(!isset($tree[$categoryId])){
$tree[$categoryId] = array('id'=>$categoryId ,'name'=>$row['Category']['name'] ,'Items'=>array());
}