![]() |
"Fetching" multiple templates?
I basicly have a couple of "module" which I want to show in the navbar.
However, this is partly template based... When I call a template the way I know PHP Code:
What's the command for calling a template in a way that I can still call the final template? Help would be appreciated, hoping for a quick reply :) |
Quote:
eval('$var("' . fetch_template ;) |
EDIT:
It just returns a blank page for me :-/. Could you maybe post a brief example on how I should this code? Thanks |
print_output means after reading that line it will stop doing anything after that line to print out the template in its param.
so before print_output you just have to code: eval('$something = "' . fetch_template('template_name') . '";'); just use it as many times as you want to create the templates, and of course it can only be used within the template feched by print_output. hope I made myself clear. |
I'm assuming you have one template as a main container and your other templates would be internal nested templates....
Basically.. use PHP Code:
PHP Code:
|
I understand the print_output part, as I am no noob to PHP.
What I did not understand, was if I have to define the $var, and if so, what should it contain, etc... |
Quote:
PHP Code:
$var as in a $varible. like lets say you want to use the postbit template once PHP Code:
|
Quote:
|
Quote:
So, basicly, in the main template, I can use the $var which I used to "fetch" the template? I can't try it now, but I think I understood it, thanks. |
Quote:
|
All times are GMT. The time now is 03:15 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|