Lambda the Ultimate

inactiveTopic Building an Extensible Menu Class
started 8/18/2001; 12:25:17 AM - last post 8/18/2001; 12:25:17 AM
Ehud Lamm - Building an Extensible Menu Class  blueArrow
8/18/2001; 12:25:17 AM (reads: 1905, responses: 0)
Building an Extensible Menu Class
(via PHP everywhere)

Now, you may not know this, but my favourite language and yours, PHP, comes with some pretty powerful OOP capabilities. And over the course of this article, I'm going to demonstrate some of them by building an object to address a very common task - generating a menu tree on a Web site. That's not all, though - once I've successfully created a Menu object, I'm going to torture-test it with some of the most popular menu systems available on the Web to see if it does, in fact, offer any significant advantages.

Along the way the article explains nicely the pros and cons of creating dynamically built webpages based on a database.

The article compares and integrates the PHP solution with HIERmenus and FolderTree (Javascript), essentially showing how to use PHP to do the server side processing, and use Javascript for dynamic page content.

Long time since we discussed specialized languages around here...


Posted to OOP by Ehud Lamm on 8/18/01; 12:28:06 AM