ProcessTemplate
Posted: Thu Mar 02, 2017 6:37 pm
Hi Guys, i'm able to display the template but is it possible to convert it into a string to be emailed or echoed?
is there something i can use instead of $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();
also, is there a way to process Content Blocks as templates?
Thanks for the help