PDA

View Full Version : Is this correct


Shadow666
05-26-2010, 02:51 PM
Is this correct:

eval('$test = "' . fetch_template($templatename) . '";');
eval('print_output("' . fetch_template('TEST_SHELL') . '");');


$templater = vB_Template::create($templatename);
$test = $templater->render();

$templater = vB_Template::create('TEST_SHELL');
$templater->register('test', $test);
print_output($templater->render());

Also how should the 'value=' below be written for vulletin 4.

<input type="text" class="bginput" name="fullname" size="25" maxlength="40" value="{$values['fullname']}" tabindex="1" />