PDA

View Full Version : eval to vb4


lawiki
09-22-2012, 03:15 AM
Hi,

Could someone be so very kind to change the below 2 lines to VB4?

eval('$navbar = "' . fetch_template('navbar') . '";');

I think this one goes to :

$templater->register('navbar', $navbar);

But this one??

eval('print_output("' . fetch_template('MyPage') . '");');

Goes to ??

AcheronAI
09-22-2012, 05:05 AM
$templater = vB_Template::create('templatename');
$templater->register_page_templates();
$templater->register('variable1', $variable1);
$templater->register('variable2', $variable2);
print_output($templater->render());