Thread: PHP Question
View Single Post
Old 03-02-2012, 01:40 AM  
just a punk
So fuckin' bored
 
just a punk's Avatar
 
Industry Role:
Join Date: Jun 2003
Posts: 32,384
Quote:
Originally Posted by SlammedMedia View Post
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
__________________
Obey the Cowgod
just a punk is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote