Hi,
I'm trying to use FastTemplate Class, bu i've got few problems :
here is my Code
<!--- Begin -->
require "class.FastTemplate.php3";
$test = new FastTemplate("./templates");
$test -> define(
array(
"myTemp" => "TestFastTemplate.tpl"
)
);
$tui = "Hello world";
$test->assign("TITRE",$tui);
$test->parse(MAIN, "myTemp");
$test->FastPrint();
<!-- END -->
And that is the result :
Warning: Use of undefined constant MAIN - assumed 'MAIN' in
c:\inetpub\wwwroot\INTRA\test.php3 on line 14
Warning: Bad arguments to implode() in
C:\Inetpub\wwwroot\Intra\utiles\template\class.FastTemplate.php3 on line 155
Warning: Undefined variable: php_errormsg in
C:\Inetpub\wwwroot\Intra\utiles\template\class.FastTemplate.php3 on line 158
ERROR: Object -> ERROR
I really don't understand why it does not work !!!
Rémi