Inserting php into theme.tpl

schwim
schwim's picture

Joined: 2002-10-02
Posts: 80
Posted: Fri, 2010-01-29 20:38

Hi there everyone,

I tried inserting php into my template via this method(I found in the forums here):

[code]
{php}
include='../template/menu.php';
{/php}

and it resulted in a blank page, requiring a manual cache clearing with the old template to get back into the gallery.

It seems so simple, a caveman... well, you know, but it's breaking my gallery.

Could someone help me out?

thanks,
json

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Sat, 2010-01-30 06:18

does this help?
http://www.smarty.net/manual/en/language.function.include.php

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team