home    download    forum    manual    awards    faq    bugs    links

TemplatePower manual




Arabic
Deutsch
Dutch
English
Italian
Portuguese (Brazilian)
Russian
Spanish


* Not fully translated yet.




Looking for the manual in your language? Well, I need translators to translate the manual to any language. So, if you have some sparetime please sign up!

Just email to sign up:
rovel999_AT_codocad_DOT_com

If you have signed up you will receive more information about the translation.

TemplatePower object

(unknown)

Create a new TemplatePower object.

Description

object TemplatePower ( string basefile/content, [const type] )

The default value of the parameter type is the constant T_BYFILE, in case the first parameter is a filename. If the first parameter for example is a variable with the content of a template, type should be set to T_BYVAR.



See also: assignInclude().


Examples of TemplatePower v3.0+ objects.
//create a new TemplatePower object using a file
$tpl = new TemplatePower( "./base.tpl" ); $tpl = new TemplatePower( "./base.tpl", T_BYFILE ); //create a new TemplatePower object using a variable $tpl = new TemplatePower( $base_content, T_BYVAR ); //create a new TemplatePower object using a //serialized template $tpl = new TemplatePower( $base_content ); $tpl->serializedBase();


In version 1.6.2 of TemplatePower there was only one parameter, this was basefile. In version 2.0 there was a second parameter added, to tell if basefile was a serialized template. In version 3.0+ this is done different, using the function serializedBase().
Examples of TemplatePower v2.0 objects.
//create a new TemplatePower object using a file
$tpl = new TemplatePower( "./base.tpl" ); //create a new TemplatePower object using a //serialized template $tpl = new TemplatePower( "./base.stpl", true );
 

 
CopyRights © 2001-2009 Ron. P.J. Velzeboer.