O'Reilly logo

PHP 5 CMS Framework Development by Martin Brampton

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Framework solution

All the menu items for a system can be stored in a single database table. The items can be grouped together to form a menu, using an identifying field that is defined in a unique row of a menu type table.

A number of other fields have obvious uses, and the present Aliro menu table is shown in the following screenshot:

Framework solution

The basic fields, whose purpose should be relatively clear, are as follows:

  • id: A unique integer key.
  • menutype: Is used to group menu entries into a menu, so is effectively the name of one particular menu. It is a unique field in the menu type table.
  • name: Is the name of the item, and will be shown to the ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required