![]() |
Checking template variables..
How do I check what template variables are being stored/called via functions.php.
Reason is... i have a custom template that calls $footer sucessfully but does not get any other custom template. Thanx Quote:
|
$header and $footer are defined in global.php
so you have to define your variables before you can call em in templates.. |
but i thought all template variables are defined in functions.php and that's why $cust_main is successfully called?
whats the diff with the other variable/template within $cust_main i found // ###################### Start templates ####################### within global.php - should i add my custom template to the default list?actually , that didnt work... trying to undestand how this thing works |
nope, the part in functions.php just caches the content of templates, that you don't have to catch em from the db with every call.
you always have to define variables before you can use them. example: PHP Code:
|
XENON THANK-YOU SO MUCH ...
I am obviously new to PHP and just trying to put things together... it took awhile to see how i call variables via non-vb pages and then i realized the power of custom templates... and this last answer you provided me know lets me do anything... I definetly will come back in a couple weeks to collect all my custom template questions/answers for other newbies... thanx again... p.s. i think my next question will be... Where can i go to see how to add other templates to the cache? I have atleast two that will be called on every Non VB page... |
:)
glad i could help :) at PS: $templateused is the variable where you have to add templates to add em to the cache :) in global.php it will affect every page ;) |
All times are GMT. The time now is 01:22 AM. |
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:
|