make separate var for compiler file

This commit is contained in:
mohrt
2003-01-28 15:05:13 +00:00
parent 89ef1e5b08
commit e8fb7091d2
3 changed files with 18 additions and 8 deletions
+2 -2
View File
@@ -1979,7 +1979,7 @@ $smarty->display("file:F:/path/to/my/templates/menu.tpl");
// from PHP script
// put these function somewhere in your application
function db_get_template ($tpl_name, &tpl_source, &$smarty_obj)
function db_get_template ($tpl_name, &$tpl_source, &$smarty_obj)
{
// do database call here to fetch your template,
// populating $tpl_source
@@ -1995,7 +1995,7 @@ function db_get_template ($tpl_name, &tpl_source, &$smarty_obj)
}
}
function db_get_timestamp($tpl_name, &$tpl_timestamp, &$smarty_obj)
function db_get_timestamp($tpl_name, &$tpl_timestamp, &$smarty_obj)
{
// do database call here to populate $tpl_timestamp.
$sql = new SQL;