News Feed
Sections




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

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

Rob Allen's Blog: Two-Step view in Zend Framework 1.0.0

Community News: MySQL AB Project officially supports PDO

Symfony Blog: New in symfony 1.3: Project Creation Customization

Floss Valley Blog: Developing AJAX Application using Smarty and Xajax

Stefan Mischook's Blog: Building Objects Video (Parts 1, 2 & 3)


Community Events





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


framework introduction list version voicesoftheelephpant configure community threedevsandamaybe language unittest series symfony release interview opinion composer api conference podcast laravel

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