cannot use include function in template file.

feelexit - January 29, 2008 - 00:38
Project:PHPTemplate
Version:4.6.x-1.x-dev
Component:Template Defaults
Category:support request
Priority:critical
Assigned:Unassigned
Status:active
Description

include function is not working in my tpl.php files, how do you include files? is there a api to do that?

I am having
page-forum.tpl.php
page-default.tpl.php
page-front.tpl.php
....

they all have same header

I create header file called header.tpl.php , and put this code

<?php
include 'header.tpl.php';
?>

to include header file on all pages.

in my page-default.tpl.php, I m using include file , have no problem.

but in my page-forum.tpl.php, I am getting this error message.

warning: include(/mom/sites/all/themes/bluebreeze/header.tpl.php) [function.include]: failed to open stream: No such file or directory in F:\xampp\htdocs\mom\sites\all\themes\bluebreeze\page-forum.tpl.php on line 1.

I guess I am using clean url module, that causes problem

url for page-default.tpl.php file is http://localhost/mom/
url for page-forum.tpl.php file is http://localhost/mom/forum

 
 

Drupal is a registered trademark of Dries Buytaert.