Categories > TinyButStrong general >

render function

The forum is closed. Please use Stack Overflow for submitting new questions. Use tags: tinybutstrong , opentbs
By: handoko
Date: 2010-01-31
Time: 16:05

render function

What is the different between this code
$invoice->show(TBS_NOTHING);
$htmlEmail = $invoice->source;

and

$invoice->Render = TBS_NOTHING;           
$invoice->Show();                       
$htmlEmail = $invoice->Source;          


thanks
By: Skrol29
Date: 2010-01-31
Time: 23:38

Re: render function

Hi,

It is the same thing.

The second code can be useful when you need to define the output far before you merge the [var] and [onshow] fields. For caching purpose for example.