Entries tagged with «php»
Using php closures to build html
Created:
I've been mostly been doing Java and Groovy programming over the last years. When I read that PHP got support for Closures (okay I'm a little late to the party..) I wanted to see if they could be used to create builder patterns similar to those we find everywhere in the Groovy world.
Continue reading Tags: closures, php, builderHow to write a really simple template engine in PHP - Part two
Created:
In this blog entry I'll show you how to extend the classes from part one to introduce the concept of layouts.
Continue reading Tags: template, mvc, phpHow to write a really simple template engine in PHP
Created:
This two-part blog entry shows how you can create a really simple template engine in php using output buffering.
Continue reading Tags: template, mvc, php, view, output buffering
