By feelexit on
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
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
Comments
more details about my
more details about my problem.
I create header file called header.tpl.php , and put this code
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
dont worry about, i fix it.
dont worry about, i fix it.
Can you please post HOW you
Can you please post HOW you fixed it, otherwise the post is still not solved.
Thanks.