Welcome to PHP Source Code - Meta Blog of Blogs
php source, php code, source code, php scripts, php tips, php news, php technologies, php help, php job
Eran Galperin’s Blog: OO PHP Templating
Autor PHPDeveloper.org
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.
Comment
You must be logged in to post a comment.
Options
-
November 19, 2008 -
Contributors, PHP Help, WordPress, Google, Javascript, AJAX, Graphics, PEAR, ZEND, MVC, PHP Tips, PHP Jobs, PHP News, PHP Technologies -
0 comments
-
Comments RSS -
Del.ico.us
-
Digg!
