Use Tree Behavior to generate menu. You can management your menu over table Menus. Simple, fast, clear. Work on CakePhp 3.x