The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
template with in a template
This is for my switch this makes a error.
Code:
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()); ?> Code:
$templateradd = fetch_template('Site_Glossary_add'); Code:
$final_rendered = 'blah '; Code:
{vb:raw templateradd} P.S. I am trying to have all one php page |
#2
|
||||
|
||||
How can you register the variable $templateradd when you never actually rendered the template? All you've done is create it, you never rendered it.
|
#3
|
||||
|
||||
ahhh I see
Code:
case "add": $templater = vB_Template::create('Site_Glossary'); $templateradd = vB_Template::create('Site_Glossary_add'); $templateradd = $templateradd->render(); break; default: $templater = vB_Template::create('Site_Glossary'); } |
#4
|
||||
|
||||
Sometimes, you just need a second set of eyes.... or in my case, four eyes.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|