Categories > TinyButStrong general >

Getting Output Results into String

The forum is closed. Please use Stack Overflow for submitting new questions. Use tags: tinybutstrong , opentbs
By: Will Robertson
Date: 2003-07-07
Time: 08:43

Getting Output Results into String

I would like to instead of using $TBS->Show(); to output it to stdout, I want to output it to a string (for instance, like if it were a mail template, so that I could just put it into a string, then drop it in the mail queue)
By: Skrol29
Date: 2003-07-07
Time: 10:31

Re: Getting Output Results into String

Hello Will,

Use the Render property to specify what to do during the Show method.
And use the Source property to retrieve the result of the merge.

$TBS->Render = TBS_NOTHING ;
$TBS->Show() ;
$mystring = $TBS->Source ;