XTemplate Advanced Documentation

Last edited by JeremyCoates
Mon, 29 Mar 2010 14:27 BST [diff]


If you're just starting out with XTemplate, try here first

Table Rows
One thing often asked about XTemplate is how to do accurate table rows (or similar rows and columns type output) using nested loops. Common symptoms of the wrong approach include an an extra (empty) row or an omitted final result. An example showing one solution is here: Output PHP Source Template

Tag Callback Functions
A new (powerful) feature of XTemplate is Tag Callbacks. They essentially allow you to call PHP functions/methods from within a tag in your templates. This (slightly) moves some intelligence into the template, but it's quite useful non-the-less. For full examples read: Example file output, then see the PHP Source and finally the Template file.

XTemplate & ZendFramework
You can find details of how to use XTemplate with the ZendFramework here: Zend Framework MVC Example


CategoryXTemplateDocumentation
XTemplateDocumentation
There are no comments on this page.
Valid XHTML :: Valid CSS: :: Powered by WikkaWiki