knplabs/KnpMenu — Issue #18: MenuItem name for parent menu
Author: rogerized
Created: 2011-10-18 12:10:56+00:00
State: open

Hi,

in the class MenuItem i read the following comment:

protected $name = null; // the name of this menu item (used for id by parent menu)

If it should use the name to actually prefix the parent element for a multidimensional menu, it does not work. But maybe i expect something wrong? My class for parent (ul) is named "menu_level_1", "menu_level_2" and so on (I use with the TwigRenderer). Even for another menutree. So i have the same name for alle Submenus in all menus.

Hopefully it my problem is understanable. It is a very nice Bundle though ;)