HomePHP Page 2 - Web Development With PHP FastTemplate
Who Am I? - PHP
Typically, most PHP-based Web sites use scripts which containintermingled PHP and HTML code. While this speeds up development, it alsohas a downside: an interface designer cannot modify page layouts or HTMLtemplates without the assistance of an experienced PHP developer. Well,there's a solution to the problem - and you'll be surprised to hear thatit's been around for quite a while. Say hello to PHP FastTemplate.
Let's begin with a simple example of how FastTemplate works. Consider the following HTML page - I've called it "mypage.tpl" - which contains personal information about a specific user.
As you can see, this page does not contain any data per se; instead,
FastTemplate variables (enclosed in curly braces) are used as placeholders in the appropriate locations. Once the FastTemplate engine parses the document, these variables will be replaced with their actual values.