News Feed
Jobs Feed
Sections




News Archive
Eran Galperin's Blog:
OO PHP Templating
November 18, 2008 @ 13:05:30

On the TechFounder blog, Eran Galperin has taken a look at object-oriented templating in PHP applications, comparing the older search and replace method with the inclusion of PHP-based templates.

PHP as a language can be considered a templating system, as in its root it was meant to modify HTML pages dynamically. The need for more structured templating systems arose as PHP applications have grown more and more complex, giving birth to much more specialized and focused solutions.

He illustrates with an object replacement example - parsing the template as a PHP script and replacing any objects found with the corresponding object property value.

0 comments voice your opinion now!
template project search replace include object


blog comments powered by Disqus

Similar Posts

SitePoint PHP Blog: Markup Separation with Template IT

Raphael Stolt's Blog: Handling JSON responses on the client side

DevShed: Using Yahoo! Web Services with PHP 5

ThinkPHP Blog: Spooky Action at not so much Distance

CodeSnipers.com: Embarking on PHP5 Objects


Community Events











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


unittest release conference community zendframework2 introduction code testing object example framework functional composer language tool opinion podcast interview development series

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