Page 1 of 1

template + php code? template + embedded?

Posted: Sat Jan 20, 2007 9:51 pm
by radioshack
hey all,

i have an existing header.php and footer.php that i use to wrap my content with php includes on every page on my site. what i would like is to wrap s9y in a header and footer thru a template, but smarty seems to have disabled {php} and {include_php}... making that impossible. is it possible to turn that security feature off so i can run these as includes? or perhaps someone knows the location of the smarty plugins dir so i can make a symlink to my header and footer?

if that is not an option, i have been looking into embedding my site using the indexFile option and a wrapper... but when i do so i lose all my template ability. I really have no desire to hardcode the css for layout and style all over. is there some way i can run embedded but leverage the existing templates (mt-rusty)?

thanks in advance :)

Re: template + php code? template + embedded?

Posted: Mon Jan 22, 2007 2:17 pm
by garvinhicking
Hi!
is it possible to turn that security feature off so i can run these as includes?
Yes: http://www.s9y.org/11.html#A34

You might want to read that topic further, and also check http://www.s9y.org/78.html -- those should get you kickstarted into the right direction :)

HTH,
Garvin[/i]

Posted: Mon Jan 22, 2007 5:35 pm
by radioshack
Garvin,

You are the Man. thanks! :mrgreen: