News Feed
Sections




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

DevShed:
Factoring Content Boxes with the Factory Pattern in PHP 5
July 09, 2007 @ 14:36:00

DevShed finishes off their look at using the Factory design pattern in a PHP5 application with this last part of the series - using the pattern in factoring content boxes on your site.

I'd like to put the tiny details of the factory pattern to the side (at least momentarily) and introduce the topics that I plan to cover in this final article of the series. In this last tutorial I'm going to teach you how to implement this useful pattern to build a bunch of highly-customizable content boxes, which can be quickly included into any web page.

Building on the foundation from previous parts of the series, they create the different boxes with different types (like GreyContentBox and BlueContentBox based on ContentBox) and displaying them to a page via calls to their Factory interfaces.

0 comments voice your opinion now!
factory designpattern content box php5 tutorial factory designpattern content box php5 tutorial


blog comments powered by Disqus

Similar Posts

Christoph Dorn's Blog: Gain insight into your cache interaction with FirePHP Companion

DevShed: Building a Database-Driven Application with the Code Igniter PHP Framework

Jurian Sluiman: Using Zend Framework service managers in your application

PHPBuilder.com: Using SPL Iterators in PHP to Interact with Different Data Types

Gonzalo Ayuso: Dependency Injection Containers with PHP. When Pimple is not enough.


Community Events

Don't see your event here?
Let us know!


framework community opinion series laravel api application podcast language release conference symfony2 performance configure example introduction php7 interview part2 install

All content copyright, 2015 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework