Hello, I'm new to TBS and I'm having problem with it. Here is my PHP code
<?
require_once("config.php");
$TBS =& new clsTinyButStrong ;
$TBS->LoadTemplate("test.html");
$Message = "";
$TBS->Show();
|
And my HTML code
<table>
<tr><td>[onshow_message;block=tr;when [var.Message]!=""][var.Message]</td></tr>
</table> |
I mean if the $Message is empty then delete the "tr" element, however, if
- $Message = "" then I get
<table>
<tr><td></td></tr>
</table> |
- $Message = "Something" then I get
<table>
<tr><td>Something</td></tr>
</table> |
- global $Message then TBS gives me error
<br /><b>TinyButStrong Error</b> in field [var.Message...] : the PHP global variable named 'Message' does not exist or is not set yet. <em>This message can be cancelled using parameter 'noerr'.</em><br />
<br /><b>TinyButStrong Error</b> in field [var.Message...] : the PHP global variable named 'Message' does not exist or is not set yet. <em>This message can be cancelled using parameter 'noerr'.</em><br />
<table>
<tr><td>[var.Message]</td></tr>
</table> |
So what's wrong with my code. Please I need your help. Thanks.