PHP Requires and Includes

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
obayesshelton
New Member
New Member
Posts: 3
Joined: Mon Jun 15, 2009 7:02 am

PHP Requires and Includes

Post 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 ?
alby

Re: PHP Requires and Includes

Post 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
obayesshelton
New Member
New Member
Posts: 3
Joined: Mon Jun 15, 2009 7:02 am

Re: PHP Requires and Includes

Post 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 ?
alby

Re: PHP Requires and Includes

Post 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
Post Reply

Return to “CMSMS Core”