我想由管理员创建动态多个子菜单。例如,如何创建它,
> products(Main menu)
> ->apple(sub menu)
> ->Mac
> ->ipod
> ->ipod 4G
> ->ipod 5G
> ->ipad
> ->microsoft
> ->HP
像这样我必须从管理部分创建菜单。怎么做?
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.