new HTML_Template_Flexy (Previous) (Next) $flexy->outputObject()

View this page in Last updated: Mon, 02 Jul 2007
English | Dutch | French | German | Hungarian | Japanese | Polish | Russian | Spanish | Plain HTML

$flexy->compile()

$flexy->compile() -- Converts a template from markup to PHP if required

Opis

If neccessary it will convert the Template markup into PHP code, and writes it to the compiledTemplate directory adding the {locale}.php to the end of the filename. The Template is only compiled if

  • No compiled file exists

  • The file modification date of the template is greater than the compiled one

  • The forceCompile Flag was set in config or when you created the template object.

It is not normally neccesary to set the forceCompile flag, unles you are working on the engine it'self.

Parametr

  • string $template - Used in conjuction with the config variable 'templateDir' to locate the template to compile into PHP code.

Zwracana wartość

string - the location of the compiled file (which could be used with include) - although it is recommended to use the outputObject methods.

Uwagi

Ta funkcja nie może być wywołana statycznie.

Przykład

new HTML_Template_Flexy (Previous) (Next) $flexy->outputObject()

Download Documentation Last updated: Mon, 02 Jul 2007
Do you think that something on this page is wrong? Please file a bug report or add a note.
User Notes:
There are no user contributed notes for this page.