php require_once

dmikester1

Joined: 2007-03-06
Posts: 11
Posted: Thu, 2008-10-02 02:21

I'm trying to get Gallery integrated into my site. Right now I am pulling in the header, nav, and footer with php 'require_once'. I added the following code to my theme.tpl:
{php}
require_once 'header.html';
require_once 'navigation.html';
{/php}

and:
{php}
require_once 'footer.html';
{/php}

to the beginning and end of the body respectively. Now I just have a blank dark gray(the color of my carbon theme) page. Can someone help me out?
Thanks
Mike

 
dmikester1

Joined: 2007-03-06
Posts: 11
Posted: Sat, 2008-10-04 02:59

Here's another question to go along with that. How can I access my other files(css/html etc) when they are five directories above the one where theme.tpl is located? Am I supposed to point to ../../../../../header.html? Or is there an easier way?
Thanks
Mike