View Single Post
  #1  
Old 10-18-2002, 09:23 AM
 
AJ AJ is offline
 

Member
  
Join Date: Oct 2002
Location: Marietta, Ohio
Posts: 25
 

Default Can you use PHP code in Smarty templates?

I'm sure this is a question that's been asked before, but I can't find an answer.

Can you use PHP code inside a .tpl file, or at least include a php file? I tried <?php include("somefile.php") ?> and it didn't parse the PHP at all.

I have some very specific mods I need to make that require custom PHP code. I have no time or desire to learn the Smarty syntax and was desperately hoping I could just use PHP.

Frankly when I bought X-Cart I thought it would be mostly PHP-based, so all this Smarty code has thrown a wrench into my schedule.

Thanks for any help.
__________________
Andrew
Webdev/Designer/Filmmaker
http://www.jstudios.com
Reply With Quote