Page 1 of 1

Integrate Into existing Site

Posted: Sat Mar 14, 2015 12:50 am
by forgiven
Just installed phpMyFAQ 2.8.x. Now i would like to know how/where to add our header, sidebar and footer into phpMyFAQ PHP? Our site is written in pHP if that matters

Re: Integrate Into existing Site

Posted: Sat Mar 14, 2015 11:46 am
by Thorsten
Hi,

just take a look at the index.tpl file in /assets/template/default/index.tpl

bye
Thorsten

Re: Integrate Into existing Site

Posted: Tue Apr 28, 2015 10:22 pm
by forgiven
OK, so I need to include a php file for the header and footer. So I put:
<?php include 'direct/path/h.php'; ?> between line 29 and 31 of /assets/template/default/index.tpl then saved and browsed to the link and nothing shows up. I assume it does not like the php inside the tpl?

Re: Integrate Into existing Site

Posted: Thu Apr 30, 2015 7:43 pm
by Thorsten
Hi,

nope, PHP code does not work in templates.

bye
Thorsten