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 ?
PHP Requires and Includes
Re: PHP Requires and Includes
Why not use UDT?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.
But why not embed directly in template?
Alby
-
- New Member
- Posts: 3
- Joined: Mon Jun 15, 2009 7:02 am
Re: PHP Requires and Includes
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
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
{global_content name="header1"}
.......
.......
{global_content name="footer1"}
and change header to:
{global_content name="header2"}
.......
.......
{global_content name="footer1"}
Alby