Page 1 of 1
PHP Requires and Includes
Posted: Mon Jun 15, 2009 7:04 am
by obayesshelton
Hi all ,
I would like to know if its possible to add a PHP Require or Include statement to a Template as I want to require my header and footer which are in separate files.
I have tried just adding it to the template code but nothing happens any ideas ?
Re: PHP Requires and Includes
Posted: Mon Jun 15, 2009 8:32 am
by alby
obayesshelton wrote:
I would like to know if its possible to add a PHP Require or Include statement to a Template as I want to require my header and footer which are in separate files.
Why not use UDT?
But why not embed directly in template?
Alby
Re: PHP Requires and Includes
Posted: Mon Jun 15, 2009 12:14 pm
by obayesshelton
Because if I use a Require or Include i only have to change one file which is the required file unless there is another way ?
Re: PHP Requires and Includes
Posted: Mon Jun 15, 2009 12:45 pm
by alby
Many people use GCB in template
{global_content name="header1"}
.......
.......
{global_content name="footer1"}
and change header to:
{global_content name="header2"}
.......
.......
{global_content name="footer1"}
Alby