No Images Added Yet

Menu Handling Class with SimpleXML and PHP

Rated3.1/5 (9 ratings)
Add to Favorites
Create navigation menu with sub elements in no time
Product Details

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. The script controls nine variables you deliver according to your environment and XML file by adapting the PHP code in the HTML file. The script is made of two parts: In the first part 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.

Report this Listing
Licence Type
Submitted on
10th February 2009
Last Updated
6th February 2015
Licence Type
License Price

You May Also Like

User Reviews

Please rate the listing and tell the world know what do you think about the listing.
(9 ratings)
Average User Rating: 3.1/5
No reviews found.
Not yet reviewed by any member. You can be the first one to write a review for this listing.Click hereto submit your review.