the secure PHP framework

Menu library


  • set_start_point($link):
    Search for menu item in database by link and use it as the root of the menu.
  • set_depth($depth):
    Set the depth of the sub-menus that will be added to the output.
  • set_user($user):
    Limit items in the menu to the ones accessible for the current user.
  • to_output($current_url = null):
    Add the menu to the output.


[php] set_user($_user); } $menu->to_output(); ?> [/php]