Does anyone have a little code snippet that will show me the correct syntax for outputting a parsed Template to a file? I am creating a user-build-your-own Website type of deal and want to take the users selected variables, asign them to the parsed Template and then output the results to an html file.
Any help appreciated.
Marcel.
Here's the solution if anyone cares to know...
$aFile = fopen("indexTEST.html", "w+"); fwrite($aFile, $tpl->fetch(PAGE)); fclose($aFile);
Be mindful of write permissions on the file(folder) in question. 🙂