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

Paramètres

Valeur retournée

string - the object variables overlayed on the template

Note

Cette fonction ne peut pas être appelée de façon statique.

Exemple