miniBB ® miniBB®
miniBB Support Forums
 | Forums | Register | Reply | Search | Statistics | Manual |
Specific miniBB Support Forums / Specific /   

Problem Building header.php to use with $includeHeader

Author kazooter
Registered
#1 | Posted: 1 Nov 2009 18:28 | Edited by: kazooter 
In building a custom header.php, i discovered a problem with my 'include' files. Functions within these included files are not able to access their declared Globals. The variables are available as normal outside the functions, but something about the way miniBB processes the header.php file seems to be destroying them as globals. Any suggestions?

Author Guest
#2 | Posted: 2 Nov 2009 03:29 
Without seeing the code it's hard to tell... but definitely, all variables must be declared as {$GLOBALS['var']} inside your custom header.

Specific miniBB Support Forums / Specific / Problem Building header.php to use with $includeHeader Top

Your Reply Click this icon to move up to the quoted message

 Short link for this topic:

 ?
Only registered users are allowed to post here. Please, enter your username/password details upon posting a message, or register first.


Before posting, make sure your message is compliant with our forum posting rules. If not, it may be locked or deleted with no explanation.
 
miniBB Support Forums Powered by Forum Software miniBB ® Features  Requirements  Demo  Download  Showcase  Gallery of Arts
Compiler  Premium Extensions  Premium Support  License  Contacts
Install the Captcha add-on: protect your miniBB-forums from the automated spam and flood.
Captcha Addon for miniBB