Error: Cannot open the file template/index.tpl.

In this board you can talk about general questions about phpMyFAQ

Moderator: Thorsten

Post Reply
smatheson
Posts: 1
Joined: Sun Nov 07, 2004 9:49 am

Error: Cannot open the file template/index.tpl.

Post by smatheson »

I'm trying to include phpMyFAQ within an existing site using php using:

Code: Select all

<?php require("faq/index.php"); ?>
I've edited index.tpl to only include the actual code, aka everything within the header, categories, and content comments. The rest of the code I incorporated into my main page template, and I tried to make sure to get all the header information that phpMyFAQ requires.

When I call up the main php file, my default template displays correctly, however where the phpMyFAQ should display, I only get:
Error: Cannot open the file template/index.tpl.
Looking at the source of the page, everything seems to be in order. Also, looking at the main default phpMyFAQ page, aka "faq/index.php" it displays properly, minus the formatting of course because I took it out of the template.

Help?
Thorsten
Posts: 15741
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,

this can't work because you include a file which creates a HTML output.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
Post Reply