Quote:
Originally Posted by SlammedMedia
I currently have php includes in my page like the one below...
<?php include ("header.php"); ?>
and I'm getting the following error when building my template:
Template not saved: Your template currently contains raw PHP code using <? and ?> tags; you should instead use the special {php} or {phpcode} template functions for raw PHP code (see the software manual for details on these template functions)
How should it look written properly?
Thanks
|
It's because you are trying to insert your PHP code into a smarty template. Read this:
http://www.smarty.net/docsv2/en/language.function.php