PHP XTemplate Wiki : AdvancedDocumentation

HomePage :: Categories :: PageIndex :: RecentChanges :: RecentlyCommented :: Login/Register

XTemplate Advanced Documentation

Last edited by JeremyCoates:
Added Tag Callback Functions
Thu, 16 Aug 2007 22:39 UTC [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. [Add comment]

 
Google
Valid XHTML 1.0 Transitional :: Valid CSS :: Powered by Wikka Wakka Wiki 1.1.6.3
Page was generated in 0.0159 seconds