[imp] Parent and child menu items

Jan Schneider jan at horde.org
Tue Feb 26 10:02:23 UTC 2008


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.

-- 
Do you need professional PHP or Horde consulting?
http://horde.org/consulting/



More information about the imp mailing list