Menu Handling Class with SimpleXML and PHP
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.
- Visit Site:
- Menu Handling Class with SimpleXML and PHP
- Version:
- 1.0_XML_MenuClass_CB
- Filed in:
-
PHP / Scripts & Programs / XML & PHP
- Platforms:
-
- Date Added:
- Feb 10, 2009
- Last Updated:
- Feb 16, 2009
License and Pricing Information
Freeware
Price: $0.00 USD
| Publisher site visits: | 657 |
|---|---|
| Average rating: | 0.00 |
| Total ratings: | 0 |
Publisher Info
- Author:
- Claudio Biesele
Other listings by this publisher
- PHP calendar with AJAX driven agenda
- Breadcrumbs navigation with PHP 5, SimpleXML, XPath and class
- Advanced Form Handling with PHP
- Combine XML, Files and SQLite with PHP 5
- Web safety with AJAX and PHP 5
- PHP Basket Class with OOP
- PHP Multipurpose Forms with data binding and cross table
- Handle remote data with PHP 5 and REST Web service
- Small Reservation CMS with setup file for easy installation
