|
|
SetTemplate
void SetTemplate( string|int file ) |
SetTemplate() function serves
to select a template opened with Open() or
DefineTemplate() by his name or his number. |
<?php
// SetTemplate with Definetemplate
$TPLN->DefineTemplate(array("TOP"=>"top.html","BOTTOM" => "bottom.html");
$TPLN->SetTemplate("TOP");//choose template TOP
... //code to execute
// SetTemplate with Open :
$TPLN->Open("top.html");//number 0
$TPLN->Open("bottom.html"); //number 1
$TPLN->SetTemplate(0);//we choose template TOP
... //code to execute
?>
|
Attention ! |
Since TPLN 1.4, this function is not supported used ChangeTemplate() instead. |
|