Gossamer Forum
Home : Products : DBMan SQL : Discussion :

How do I include a file in a template?

Quote Reply
How do I include a file in a template?
I am trying to include a file in my templates so that dbmanSQL pages match the rest of my site. In html pages I use the following:

<!--#include file="/includes/header.inc"-->

and in cgi scripts I use:

system("/bin/cat /home/sites/347/web/includes/header.inc");

When I use either of these in a template such as header.html, I get a file not found error along with the normal page output.

Any ideas?

Thanks.

Alan
Quote Reply
Re: [alanpollenz] How do I include a file in a template? In reply to
Hi,

I think that you should copy that file to admin/template, and then put <%include ../file_name%> into your template file.

TheStone.

B.