Including PHP includes in phpMYFAQ template.

In this board you can talk about general questions about phpMyFAQ

Moderator: Thorsten

Post Reply
stony
Posts: 2
Joined: Sun Aug 22, 2004 11:42 pm
Location: New York
Contact:

Including PHP includes in phpMYFAQ template.

Post by stony »

Hello,

Loving phpMyFAQ so far! :) I have some simple (I think) questions about including PHP includes in my template...

Here's what I've tried:

1) I created a template item:

Code: Select all

{header_inc)
2) Then, I made it a path in index.php:

Code: Select all

$tpl->processTemplate ("index", array(
   "title" => $PMF_CONF["title"].$title,
	"inc_header" => 'include("http://www.simmingworld.com/design/header.php");',
Unforunately, the include simply shows up as this text at the top of the page:
The page is not translating the PHP for some reason. Can and how do I go about fixing this?? I'm running v1.4.1.

Thanks so much!!
Thorsten
Posts: 15759
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,

viewtopic.php?t=319

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
stony
Posts: 2
Joined: Sun Aug 22, 2004 11:42 pm
Location: New York
Contact:

Post by stony »

Oh, I tried that and it didn't work. Now it is. Odd, maybe I was placing the block in the wrong place in index.php.

Thanks!
Post Reply