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

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?

Thanks
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' );

and
Code: Select all
COUCH::invoke();

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
cron