KnpMenu
KnpMenu copied to clipboard
Menu Library for PHP
Currently when creating a RecursiveItemIterator passing a new ArrayIterator, the Iterator is indexed by int. ```php $treeIterator = new \RecursiveIteratorIterator( new RecursiveItemIterator( new \ArrayIterator(array($menu)) ), \RecursiveIteratorIterator::SELF_FIRST ); ``` So we...
- Bumped minimum PHP version to 7.4 - Added types to private properties (and removed phpdoc if superfluous) - Used arrow functions Fixes #357
In every project I use this library, I find myself adding a template of mine to render with Bootstrap 4. I think it could nice to provide here templates for...
Most common thing to do after utilising KnpMenu, is overriding the template, I believe we can overcome this step by providing some config in a yaml file for example ```...
Children items sets by `\Knp\Menu\MenuItem::setChildren` setter does not have parent properly set. This issue does not occur in `\Knp\Menu\MenuItem::addChild`.
Applied renaming over the repo with: `grep -ril ancestorClass | xargs sed -i 's@ancestorClass@ancestor_class@g'`
I see this library still supports PHP 7.3, which is End of Life (EOL) as of today. What's the policy about PHP support? The only [supported versions](https://www.php.net/supported-versions.php) are 7.4, 8.0...
https://github.com/KnpLabs/KnpMenu/blob/master/doc/01-Basic-Menus.markdown#other-rendering-options Why some options is camelCased but other underscored?
Hi, I want to set the root attributes of a menu from inside a Twig template. I am working on a project where different themes need to have different CSS...
I'm curious, is there a way to render a partial menu containing siblings (and maybe children) of the current menu item? Given a menu tree: ``` Items --> Bat -->...