Wednesday, April 18th, 2007

Template View and View Helper Design Patterns in PHP (updated v2)

The Template View and View Helper patterns lend themselves nicely when it comes to developing a View Layer solution for PHP, or so I found out with the recent refactoring of Cubix (dubbed Cubix II). This View layer duo is very much a great candidate for a “tag team”. Each component performs a role and together make up a big part of the View Layer.

update: Now includes View Helper Locator example.

More…

8 comments » Filed under PHP Design Patterns, PHP Programming by rvdavid at 1:33.

back to top

Thursday, May 25th, 2006

The Singleton Pattern with PHP

The Singleton Pattern is often mistakenly referred to as the OOP nuts “Global variable”.

Admittedly, I myself have been one of those people who had referred to it as such (this is an edited version you are reading), but in fact, the Global Variable tag that has been given to this pattern is actually a side effect - all you need to do is look at the name.

More…

1 comment » Filed under PHP Design Patterns, PHP Programming by rvdavid at 0:33.

back to top

Credits:

© rvdavid blogs: Web Development | Powered by WP 2.3.1

Tree theme modified based on headsetoptions