To use this command
###########################
IF ($topic == '') :
print "blah blah";
ELSE :
INCLUDE "$topic.inc";
ENDIF;
###########################
I have to change testing.htm to testing.inc , then I put that command in my demo.php
Demo.php
###########################
<?php
include "class.FastTemplate.php3";
$tpl = new FastTemplate(".");
$tpl->define(array(foo => "foo.htm", bar => "bar.tpl"));
$tpl->assign(PAGETITLE, "12345");
$tpl->parse(PAGECONTENT, "foo");
$tpl->parse(MAIN, "bar");
$tpl->FastPrint(MAIN);
IF ($topic == '') :
print "blah blah";
ELSE :
INCLUDE "$topic.inc";
ENDIF;
?>
Then when I click on the URL link .. the page show up below the template .. I dont' want that .. I want the link testing.inc show up at {PAGECONTENT} in my template
So Anyone help me out ?