[imp] Parent and child menu items

Sn!per sniper at home.net.my
Tue Feb 26 12:27:37 UTC 2008


Quoting Jan Schneider <jan at horde.org>:

> Zitat von Sn!per <sniper at home.net.my>:
> 
> > Quoting Patrick Boutilier <boutilpj at ednet.ns.ca>:
> >
> >> Edit horde/config/registry.php . Something like:
> >>
> >> $this->applications['myaccount'] = array(
> >>      'name' => _("My Account"),
> >>      'status' => 'heading',
> >> );
> >>
> >> $this->applications['changepass'] = array(
> >>      'fileroot' => 'path to app',
> >>      'webroot' => 'path to app',
> >>      'icon' => $this->applications['horde']['webroot'] .
> >> '/themes/graphics/website.png',
> >>      'name' => _("Change password"),
> >>      'status' => 'active',
> >>      'menu_parent' => 'myaccount'
> >> );
> >>
> >
> > Thanks Patrick. I got the idea. The menu are working. However I  
> > wonder why the userid of the logged in person (  
> > $_SESSION['imp']['user'] ) does not appear. I just got blank. Code  
> > as below:
> >
> > $this->applications['myaccount'] = array(
> >     'fileroot' => '/tmp',
> >     'icon' => '',
> >     'name' => $_SESSION['imp']['user'],
> >     'status' => 'heading',
> >  );
> 
> The registry is loaded before authentication.
> 
> Jan.
> 

Can someone suggest a way around this? TIA.

--
Roger


---------------------------------------------------
Sign Up for free Email at http://ureg.home.net.my/
---------------------------------------------------


More information about the imp mailing list