I want to create dynamic multiple sub menu by admin. How to create that for example,
> products(Main menu)
> ->apple(sub menu)
> ->Mac
> ->ipod
> ->ipod 4G
> ->ipod 5G
> ->ipad
> ->microsoft
> ->HP
Like this I have to create menus from admin section.How to do that?
You can create table of pages to menu, then add to it foreign key of itself which is the primary key of its parent. And when you select menu from db you can select all which the same kays and so long, to time when you select all submenus.
so structure from comment id|name|parent_id
is simpliest, good example of this table.