In the
second part of their look at the Stage design pattern today, DevShed moves up from the
previous article to implement a more "real world" example of the Stage pattern in action.
Essentially, what I plan to demonstrate here is how this pattern can be used to build different versions of a given web document on the fly, either for display on a typical computer monitor, or for printing.
This involves the creation of
a class to define the styles for both sides - print and screen - and
a class that will figure out which of these needs to be applied.
DevShed: Working with CSS Styles and the Stage Pattern in PHP 5 - Read More...