By: htvu
Date: 2006-04-04
Time: 05:04
|
Cannot load same subtemplate at 2 position in a template
Ex:
I have 2 subtemplates called menu (include: menu.php - menulayout.html, content.php - contentlayout.html)
In my (big) template I have a table and I put 2 TBS tags to load 2 subtemplates. code below:
<table>
<tr><td>
[onload;script=menu.php;subtpl]
</td></tr>
<tr><td>
[onload;script=content.php;subtpl]
</td></tr>
</table>
and TBS return a blank page :(
When I remove one of them, it work. I cant understand. Please help me!
Thanks
|
By: Skrol29
Date: 2006-04-04
Time: 10:27
|
Re: Cannot load same subtemplate at 2 position in a template
Hello,
This can happen if a subscript makes an exit.
An exit is also made in a subscript if you do $TBS->Show() with a $TBS variable which is not the same instance as in the parent script (you should not have $TBS = new clsTinyButStrong in the subscript).
|