tj Posted August 16, 2006 Share Posted August 16, 2006 Ok im trying to skin the new system but for some reason I cant get the php includes to work properly? According to the smarty manual if you want to include php in your template just add the {include_php} in front? This is what my code looks like. {include_php file="inc_mainnav.php"} Nothing, its not showing at all! When I try, {php} <? include('inc_mainnav.php'); ?> {/php} I get a php error blank page. Can anyone shed some light on this? Thanks 0 Quote Link to comment Share on other sites More sharing options...
tj Posted August 16, 2006 Author Share Posted August 16, 2006 Figured it out! {include file="inc_mainnav.php"} Dont use {include_php} 0 Quote Link to comment Share on other sites More sharing options...
amleth Posted August 18, 2006 Share Posted August 18, 2006 tj, another way to do it which will work, as i have done a similar thing is {php} include('inc_file.php'); {/php} in smarty templates you don't use <? and ?> Regards, Amleth Ojalen 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.