Code: Select all
global $gCms;
$smarty->assign("a_variable", "value");
$template="my_template.tpl";
$smarty->display($template);
Thanks,
Ron
Code: Select all
global $gCms;
$smarty->assign("a_variable", "value");
$template="my_template.tpl";
$smarty->display($template);
I'd like my tag to be able to use smarty templates. In some cases I am copying small existing apps from our old site, and they rely on smarty templates for their output. It'd be easier for me to manage them if they were stored in the database so I could edit them from the CMSMS admin interface.Templates for what?...
I can't remember where I saw that, but either a forum post illustrated this or an existing plugin does it. I suppose if I can't put them in the database, then I should choose a different template folder.Why are you storing them in the temporary directory