The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
|
#1
|
|||
|
|||
variable scope
Well I running into a problem and I could use some advice. Let me explain how I'm setting up my site and what exactly it is that is giving me trouble.
I have a file which includes only 4 php include statements. One for the the header, nav, body and footer. Each contain part of the style and when all files are together it creates my style. Simple. Well my body.php page is where my text is. I use an include statement to bring in file it is suppose to retrieve, and within that file is a variable which contains a value "page title". I took the variable $titleofpage and used as an argument in my function I created. That variable named "titleofpage" scope isn't working in my navigation where I call a function that I created on index.php file. I call the function on the nav.php file but the page title doesn't show. I am thinking it has something to do with my variable scope. Any help would be appreciate, and I hope I made myself clear. |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|