$flexy->bufferedOutputObject()

$flexy->bufferedOutputObject() -- Merges a controller object with the template and returns the result

Synopsis

string $flexy->bufferedOutputObject (object $controllerObject [, array $elements])

Description

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.)

Parameter

Return value

string - the object variables overlayed on the template

Note

This function can not be called statically.

Example