Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

DevShed:
User-defined Interfaces in PHP 5 - Building a Page Generator
Jan 10, 2006 @ 07:29:09

DevShed has posted thier final part in the "User-defined Interfaces in PHP" series today - "Building a Page Generator".

In this final part of the series on user-defined interfaces in PHP 5, Alejandro puts all of the classes created in the previous articles together to work as a page generator. This allows complex page generation to be translated into a more flexible process through an object-based solution.

With reference to this final part of the series, I shall put all of the classes to work together into a full-featured example, by including the already familiar (X)HTML widgets in conjunction with the pair of MySQL-processing classes, in order to integrate both types of objects into a page generator class. As a result, complex web page generation can be translated into a more flexible process tackled through an object-based solution.

Combining the efforts from the two previous articles in the series, they build a class that takes in the data it needs and builds out the page accordingly. The PageGenerator class does all of the work for you, making object-based pages a simple process...

tagged: user-defined interfaces page generator object-based user-defined interfaces page generator object-based

Link: