PHP: Rendering Web Pages Using the Composite View Design Pattern

Welcome to the conclusion of a five-part series on the Composite View design pattern. This article will focus on a way to make use of this design pattern when you're building dynamic web pages. It involves a simple two-step rendering process.
- As you probably know, one of the great commandments of good object-oriented programming says that whenever possible, Composition must be used over Inheritance, as the latter is an overrated way of reusing code. While its fair to admit that this principle should be used with due caution and, for obvi...

Read Full Article