Helo all,
I am using FastTemplate to generate the template, It is working well but each time when it generates the new template I want to save it in a flat file.. code is below..
require ('class.FastTemplate.php3');
$tpl =new FastTemplate(".");
$tpl->define(array(toplevel=>"toplevel.tpl"));
$tpl->assign("title","$username");
$tpl->assign("CONTENT","$body1 $body2 $body3");
$tpl->parse("MAIN","toplevel");
Now here I want to save this new template in a file I have used ..
fputs($file,$tpl->parse('MAIN','toplevel'));
but it dosent work..
Any help would be appritiable..
Thanx
Tabish