Source code of tbs_us_examples_script1.php
1 2 3 4 5 6 7 8 9 10 11 12 13 14
<?php
// Merging a sub-template using the current TBS instance
global $x;
$x = "This text is displayed by an external script.";
$this->Source = '[onshow.x]';
$this->Show();
/*
// Without parameter 'subtpl' in the main template, this example is equivalent to :
$CurrVal = "This text is displayed by an external script.";
*/