I want load dynamic menu like categories->subcategories->items please help me how to create using element in cakephp 3.0
contact me i can help you…
Are there any answers to this question. I have it as well. I would assume that a RAD environment would have a SQL based menu striation as well.
element are just parts of your view. So if you have a index.ctp with<?= $this->element('menu') ?>
Cakephp expect you to have a file at app/src/Template/Element/menu.ctp
That one can have menu information (html as we are on views, right?)
About the menu itself:
You can have the information on database where you can get only the links your user have permission, but the final result can be a simple
< li> item < /li>
< li> categories
< li> subcategories
< li>items< /li>
Well that looks like code. A templated system should have a menu system that has a method of storing menu objects, in tables, that can be grouped into menus, sub-menus, as a the most basic function.
More complex menus would have roles, role based, menus and custom menus.
you can use element do display and tree behavior to store menus in database