)
);
- foreach($ar as $cc) {
- $cname = $c=$cc=;
- if ($cc == '__construct') {
- $cname = 'new '
+ foreach($ar as $op) {
+ $c = $cname = $op->name;
+ if ($c == '__construct') {
+ print_R($op);exit;
+ $cname = 'new ' . $op->cls;
}
$ret['items'][] = array(
'|xns' => 'Roo.bootstrap',
'xtype' => 'NavItem',
'href' => '#' . str_replace('_','-',strtolower($this->name)). '/'.$c,
- 'html' => $c
+ 'html' => $cname
);
}
return $ret;