Menu Handling Class with SimpleXML and PHP 1.0_XML_MenuClass_CB
The big part of programming web applications is writing a lot of code - time-consuming. Classes are usefull to save time. This class is taking care of the menu handling. The XML file is easy to create: Main navigation and sub navigation differ only from the name of the node, the id of main and sub node must be the same to assign to each other. The menu class handles how and when to open and close the navigation elements.
Menu Handling Class with SimpleXML and PHP controls nine variables you deliver according to your environment and XML file by adapting the PHP code in the HTML file.
Menu Handling Class with SimpleXML and PHP is made of two parts:
- In part 1 the class loops through the XML file counting all the values from the main nodes and sets text, Url and Id to access the corresponding sub elements.
- In part 2 there are three parts: First we read the id and set the corresponding main elements (if id is 2 we show only 2 main elements), second we show all sub elements with the same id and third we show the rest of the elements.
More popular HTML
- Mysql Ajax Table Editor 2.2 (2 years, 5 months 7 days ago)
- Form Tools 2.0.3 (2 years, 6 months 5 days ago)
- PHP Form Builder Class 3.1 (5 months 15 days ago)
- Ajax Table Edit 1.0 (7 years, 4 days ago)
- PHPagination 1.0 (2 years, 6 months 15 days ago)
Listing Files

php_publ220806.htm- 8.8 KB
- 08/22/2006 10:14:10

navi.xml- 1.5 KB
- 08/22/2006 10:10:10

xml.menu.class.php- 1.5 KB
- 08/22/2006 09:40:00

xml_menu2.jpg- 18.8 KB
- 08/20/2006 08:34:12

SimpleXMLMenu.css- 3.3 KB
- 08/20/2006 07:47:54

xml_menu1.jpg- 14.4 KB
- 08/20/2006 08:33:58

SimpleXml_menuClass.php- 919 Bytes
- 08/22/2006 10:09:16
- FREE MySQL Cloud Database Super Simple, Zero-Management MySQL Cloud DB. Use It FREE!
- Pinterest clone Start your own pin board social network today. Get Pintastic and start your own pinterest clone network.
- MYRE Real Estate Software Professional Real Estate solutions by MYREPHP PROGRAMMING!
