| Posted: 10 May 2005 10:06 |
|
|
|
Registered User Currently Offline
|
Posts: 2
Join Date: May 2005
|
I want to have an include " <?php include ('file.php'); ?> " in the mainheader.htm file but instead of parsing the php command it just prints the code.
is it possible to do this?
|
| Posted: 10 May 2005 10:34 |
|
|
|
Administrator
|
Posts: 1223
Join Date: Mar 2005
|
|
It is not possible to do it in the template. What does the file.php do? You can run a php script in forumheader.php, save what you need to output in variables and add them to mainheader.htm
|
| Posted: 11 May 2005 03:27 |
|
|
|
Registered User Currently Offline
|
Posts: 2
Join Date: May 2005
|
|
Its just html in the file.php its a header, that is common throughout the site. it would be easier if I could just include the file.php instead of copying it directly into the template.
|
| Posted: 11 May 2005 09:56 |
|
|
|
Administrator
|
Posts: 1223
Join Date: Mar 2005
|
It is easier to put it in the mainheader.htm
That's how it's meant to be. Just a copy/paste operation. Another way is to include it in the forumheader.php but I wouldn't do it like that. It is good to keep code/design separated.
|