This maps the values of the supplied object and runs the compiled template, and returns the result.
This can be used in conjuction with PEAR::Cache, or in the example below, with a email template (note this still needs testing.. - the backend should eventually support a native tokenizer for email templates.)
object $controllerObject - The object you want to use with the template, the values of the object will relate to the $controllerObject->tag will map to {tag} on the template
array $elements - This is an associative array of form, or dynamic elements names (or id's) which will be merged with the one defined in the template.
Example 41-1. Person DataObject send_password method
|
Example 41-2. An email template (using the Regex Parser - hence the {t.*})
|
Example 41-3. The resulting email head and body
|