BBR-APBT
12-07-2009, 04:17 PM
This is for my switch this makes a error.
case "add":
$templater = vB_Template::create('Site_Glossary');
$templateradd = vB_Template::create('Site_Glossary_add');
break;
default: $templater = vB_Template::create('Site_Glossary');
}
// ###### NOW YOUR TEMPLATE IS BEING RENDERED ######
$templater->register_page_templates();
$templater->register('navbar', $navbar);
$templater->register('pagetitle', $pagetitle);
$templater->register('glossarynav', $glossarynav);
$templater->register('templateradd', $templateradd);
$templater->register('show', $show);
print_output($templater->render());
?>
I remember you could do
$templateradd = fetch_template('Site_Glossary_add');
Now this outputs
$final_rendered = 'blah ';
I am calling it with in the template using
{vb:raw templateradd}
On the new page it should show the new template with in the first template.
P.S. I am trying to have all one php page
case "add":
$templater = vB_Template::create('Site_Glossary');
$templateradd = vB_Template::create('Site_Glossary_add');
break;
default: $templater = vB_Template::create('Site_Glossary');
}
// ###### NOW YOUR TEMPLATE IS BEING RENDERED ######
$templater->register_page_templates();
$templater->register('navbar', $navbar);
$templater->register('pagetitle', $pagetitle);
$templater->register('glossarynav', $glossarynav);
$templater->register('templateradd', $templateradd);
$templater->register('show', $show);
print_output($templater->render());
?>
I remember you could do
$templateradd = fetch_template('Site_Glossary_add');
Now this outputs
$final_rendered = 'blah ';
I am calling it with in the template using
{vb:raw templateradd}
On the new page it should show the new template with in the first template.
P.S. I am trying to have all one php page