Hard coded menus

If your custom bundle uses a menu that never changes or you would like to programatically create a menu and you would like to make it available within your templates, you can create your own as a PHP class.

The KnpMenuBundle Docs outline the basic method and there is no need to repeat that here.

You can load the menu from within a template as the docs above state {{ knp_menu_render('MyCustomBundle:ClassName:methodName') }}

Your menu class must be located in the /Menu directory at the root of the bundle.