00001 #include "phpfiles.h" 00002 00003 void PHPFiles::phpHeader(StatementList *phpOut) const{ 00004 phpOut->push_front(new Constant("$smarty = new Smarty;\n")); 00005 phpOut->push_front(new Constant("require 'libs/Smarty.class.php';\n")); 00006 phpOut->push_front(new Constant("<?php\n")); 00007 }; 00008 00009 void PHPFiles::phpFooter(StatementList *phpOut, const string tplName) const{ 00010 phpOut->push_back(new Constant("$smarty->display('"+tplName+"');\n")); 00011 phpOut->push_back(new Constant("?>\n")); 00012 };