Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / I cant get the php include statement to work in the tpl_header file.

I cant get the php include statement to work in the tpl_header file.

Locked

Views: 1,204

Results 1 to 2 of 2
This thread is locked. New replies are disabled.
21 Oct 2009, 6:52 PM
#1
buxton1 avatar

buxton1

New Zenner

Join Date:
Jun 2009
Posts:
51
Plugin Contributions:
0

I cant get the php include statement to work in the tpl_header file.

Hi every1,

Little bit stuck on something.

I am trying to include a navigation bar into the tpl header file:
http://www.thebusinessopportunist.com/monique/includes/templates/monique/common/nav.html

In the tpl_header file, i have deleted everything for simplicity and just written:

<?php include ('nav.html'); ?>

However, on the pages of the site: http://www.thebusinessopportunist.com/monique/
The navigation bar is not loading.

The nav.html page does use some javascript files, however I have tried the include statement in a blank php document before, and this worked.

Any help would be great.

Thanks very much!

22 Oct 2009, 11:16 PM
#2
buxton1 avatar

buxton1

New Zenner

Join Date:
Jun 2009
Posts:
51
Plugin Contributions:
0

Re: I cant get the php include statement to work in the tpl_header file.

Hi guys,

Managed to solve my problem. For any one interested, I just copied all the js files that i required to the root of the website.

If anyone has probs with JS nav bars, feel free to PM me.