Categories > TinyButStrong general >

About method LoadTemplate()

The forum is closed. Please use Stack Overflow for submitting new questions. Use tags: tinybutstrong , opentbs
By: skey
Date: 2007-11-26
Time: 04:00

About method LoadTemplate()

TBS manual

Syntax: $TBS->LoadTemplate(string File{, string HtmlCharSet})

Adding the file at the end of the current template:
You can use the keyword '+' instead of the the charset to have the file added to the end of the current template. Charset parameter stay the same as for the first template.
-------------------------------------------------------------------------------

I don't understand keyword '+' of method of using

can you give me a example

By: sheepy
Date: 2007-11-26
Time: 08:34

Re: About method LoadTemplate()

$TBS->LoadTemplate('header.html');
$TBS->LoadTemplate('body.html', '+'); // Add body after header
$TBS->LoadTemplate('footer.html', '+'); // Add footer after header + body

// Happy merging!
By: skey
Date: 2007-11-27
Time: 16:08

Re: About method LoadTemplate()

Thank you!