[imp] Parent and child menu items

Sn!per sniper at home.net.my
Tue Feb 26 08:34:19 UTC 2008


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',
 );

$this->applications['changepass'] = array(
    'fileroot' => '/tmp',
    'webroot' => 'http://user.example.com',
    'initial_page' => 'cpasswd.php',
    'icon' => '',
    'name' => _("Change Password"),
    'status' => 'active',
    'menu_parent' => 'myaccount'
);

$this->applications['changesecretq'] = array(
    'fileroot' => '/tmp',
    'webroot' => 'http://user.example',
    'initial_page' => 'csecretq.php',
    'icon' => '',
    'name' => _("Secret Question"),
    'status' => 'active',
    'menu_parent' => 'myaccount'
);

$this->applications['changeprofile'] = array(
    'fileroot' => '/tmp',
    'webroot' => 'http://user.example.com',
    'initial_page' => 'cprofile.php',
    'icon' => '',
    'name' => _("Update Profile"),
    'status' => 'active',
    'menu_parent' => 'myaccount'
);

Please help. TIA.


--
Roger


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


More information about the imp mailing list