Help - Search - Members - Calendar
Full Version: Using PHP Headers in main_header.tpl?
Big Red Spark Forums > Big Red Spark.com Forums > Unit Command Climate Assessment and Survey System (UCCASS)
debsweb
I already have php header files created for my site which I'd like to also use in the UCCASS system. However, when I try to include the PHP header files into the TPL files, I just get Smarty template errors. Is there a way of using existing PHP headers within the UCCASS without copying/pasting (and in essence creating a duplicate of the header file) the text into the TPL files?
debsweb
QUOTE(debsweb @ Apr 19 2008, 06:05 PM) *

I already have php header files created for my site which I'd like to also use in the UCCASS system. However, when I try to include the PHP header files into the TPL files, I just get Smarty template errors. Is there a way of using existing PHP headers within the UCCASS without copying/pasting (and in essence creating a duplicate of the header file) the text into the TPL files?


I found it ... instead of including the php with traditional
<? php stuff ?>

I used
{php} php stuff {/php}

and it works great! Found this in the Smarty Wiki.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2010 Invision Power Services, Inc.