Forum for discussing general topics related to Couch.
2 posts Page 1 of 1

I'm looking forward to use couch, looks very promising. But I have some few questions. My site consists of html but saved as php. (for design purposes) with header and footer files. I'm a little confused with the docs. Do I need to revert back to a single file? Header and footer files to be back on a single page?

Hi Graham,

Welcome to our forum.

It's perfectly okay to use Couch with PHP files too.
You still need to add the mandatory
Code: Select all
<?php require_once( 'couch/cms.php' ); ?>

as the first line of executable PHP code and
Code: Select all
<?php COUCH::invoke(); ?>  

as the last executable line of code.

Since you have split your code into separate header and footer files, you can place the above mentioned lines within these included files. If you place them in already declared PHP block (i.e. that already has begun with <?php, you can skip the <?php and ?> and simply add
Code: Select all
require_once( 'couch/cms.php' );

Code: Select all

to existing PHP code.

Hope that answers the question.
If you have any further queries, please feel free to contact us.
2 posts Page 1 of 1

Who is online

In total there are 2 users online :: 0 registered, 0 hidden and 2 guests
(based on users active over the past 5 minutes)

Users browsing this forum: No registered users and 2 guests