Revision [181]

This is an old revision of AdvancedDocumentation made by JeremyCoates on 2007-08-14 00:08:25.


XTemplate Advanced Documentation

Last edited by JeremyCoates:
Tag callback info
Tue, 14 Aug 2007 00:08 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 Callbacks
When using tag callbacks feature e.g. {mytag|my_callback} if you repeat the tag within the same block (with or without a different callback method), you will get the first tags callback results throughout the block. You have to parse the block to (auto)reset the tag to be able to update it's contents again.

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

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