Categories > TinyButStrong general >

After successfully instatiating and printing template object, no further php can be executed...

The forum is closed. Please use Stack Overflow for submitting new questions. Use tags: tinybutstrong , opentbs
By: infekt
Date: 2007-03-09
Time: 01:59

After successfully instatiating and printing template object, no further php can be executed...


After successfully instatiating and printing template object, no further php can be executed...

For example:
include_once('tbs_class_php4.php');

$TBS =& new clsTinyButStrong ;
$TBS->LoadTemplate('tpl/list.htm') ;
$list = array('X','Y','Z') ;
$TBS->MergeBlock('blk',$list) ;
$TBS->Show();

echo 'this text will not show';

echo 'nothing I do after instantiating the TBS template object will show, and no errors are displayed.';


The template and variables are rendered exactly how it's supposed to, but no further php past the rendered template can be executed, and no errors are displayed at all.

Anybody have any idea what is going on??

Thanks!

By: Skrol29
Date: 2007-03-09
Time: 02:29

Re: After successfully instatiating and printing template object, no further php can be executed...

Hi,

All this is normal.
Just see property $TBS->Render in the manual.
By: infekt
Date: 2007-03-09
Time: 23:43

Re: After successfully instatiating and printing template object, no further php can be executed...


sweet! thanks skrol.

I fixed this by modifying to:

$TBS->Show(TBS_OUTPUT);