by
KK » Mon Jan 05, 2015 9:24 pm
Place 'couch' folder in your site's root i.e. if you can access your site as
http://www.yoursite.com/, Couch should be accessible as
http://www.yoursite.com/couch/Now depending on the location of your templates (i.e. the html files renamed to .php extensions), you'll nave to adjust the first PHP line of code we place in each template e.g.
1. if a template, say named 'test.php', is in the root itself (i.e. can be accessed as
http://www.yoursite.com/test.php), the code would be
- Code: Select all
<?php require_once 'couch/cms.php'; ?>
2. if the template is in a subfolder, say named 'sub' (i.e. can be accessed as
http://www.yoursite.com/sub/test.php), the code would be
- Code: Select all
<?php require_once '../couch/cms.php'; ?>
3. if the template is nested even deeper, say in a child folder of 'sub' named 'sub2' (i.e. can be accessed as
http://www.yoursite.com/sub/sub2/test.php), the code would be
- Code: Select all
<?php require_once '../../couch/cms.php'; ?>
I think you must have got the point.
Hope this helps.