Quote:
Originally Posted by Dave-ahfb
Could you dumb that down please?
|
At the end of webhost1.php you have this code:
Code:
$templater = vB_Template::create('webhost-php');
$templater->register_page_templates();
$templater->register('navbar', $navbar);
$templater->register('pagetitle', $pagetitle);
$templater->register('sidebarext', $sidebarext);
$templater->register('sidebaropen', $sidebaropen);
$templater->register('headerincludea', $headerincludea);
print_output($templater->render());
You need to add this line:
Code:
$templater = vB_Template::create('webhost-php');
$templater->register_page_templates();
$templater->register('navbar', $navbar);
$templater->register('pagetitle', $pagetitle);
$templater->register('sidebarext', $sidebarext);
$templater->register('sidebaropen', $sidebaropen);
$templater->register('headerincludea', $headerincludea);
$templater->register('companynanme', $companynanme);
print_output($templater->render());
ALL variables you need to use in a template MUST be registered to a template before you use it. If you use any other variables you must register them also.