PDA

View Full Version : php file include in main.tpl


thompson
01-22-2006, 05:46 PM
hi,

i would like to include a php file in my main.tpl

i try it so:

Content visible to registered users only.

but there comes a warning:
Content visible to registered users only.

cannot find the reason ?

Bob
01-23-2006, 05:03 PM
{include file="filename"} is a smarty command for includeing template files which is why it doesn't work for your php file.

There are two ways that I know off that you can do this, although I've not tried either so don't know which if any works.
Content visible to registered users only.
or
Content visible to registered users only.