Code: Select all
$tpl_ob = $smarty->CreateTemplate($this->GetTemplateResource($somestring));
$tpl_ob->assign('foo','bar');
$tpl_ob->display();
also, is there a way to process Content Blocks as templates?
Thanks for the help
Code: Select all
$tpl_ob = $smarty->CreateTemplate($this->GetTemplateResource($somestring));
$tpl_ob->assign('foo','bar');
$tpl_ob->display();
Code: Select all
$out = $tpl_ob->fetch();
Code: Select all
$tpl = $smarty->CreateTemplate('cms_template:My Template Name');
$tpl->assign('foo','bar');
echo $tpl->fetch();