News Feed
Sections




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

Justin Silverton's Blog:
patTemplate and php
March 09, 2006 @ 06:52:51

Justin Silverton has posted this brief overview of the patTemplate system - what it is and how it can be used in your site.

patTemplate is a set of classes that allow you to separate your php code from design/output, making your code easier to maintain. To identify a certain part of the page as a template, patTemplate uses XML tags to assign a template a unique name and a various attributes (see patTemplate Tags and attributes for a list of all tags and attributes). When parsing a template, the parser divides the page in several chunks and treats them as separate templates. By using patTemplate's API you can hide, display or repeat a certain template.

He describes the different template types (OddEven, Condition, SimpleCondition) and how to use variables inside the templates. He wraps it up with a quick installation overview, both using PEAR and the manual installation.

0 comments voice your opinion now!
patTemplate using template types variables installation patTemplate using template types variables installation


blog comments powered by Disqus

Similar Posts

Joomla Community Site: Creating a Joomla Template From Scratch

PHPClasses.org: Site design theme editor

NetTuts.com: An Introduction to Views & Templating in CodeIgniter

DevShed: Developing an Extensible Template Processor in PHP 5 (Part 1)

Tecmint.com: Install Apache, MySQL 5.5.27 & PHP 5.4.7 on RHEL/CentOS 6.3/5.6 & Fedora 17-12


Community Events

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


laravel introduction laravel5 api threedevsandamaybe opinion extension language library podcast symfony interview framework version voicesoftheelephpant unittest release security community series

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