![]() |
Using phpinclude_start - summary
After reviewing various forums to trying and understand how to code my own variables and functions for use with templates in vB. I have found that PHPINCLUDE_START and PHPINCLUDE_END are the only places to add your own code without voiding your user support eligibility. I am creating this thread to get comments, feedback, and clarification on the use of PHPINCLUDE_START.
PHPINCLUDE_START; - executes before any other templates are parsed - is the place to define variables, constants, and globals for use in all templates - is the place to add your own code for use in the templates Templates that are used in functions do not have access to variables in PHPINCLUDE_START unless the variables are declared a defined as a superglobal ($GLOBALS[]). A great tutorial by Michael Morris is TUTORIAL: USING PHPINCLUDE_START Any comments or feedback? |
Quote:
|
Quote:
|
All times are GMT. The time now is 08:08 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:
|