View Single Post
  #3  
Old 01-01-2011, 08:46 AM
 
Shamun Shamun is offline
 

X-Adept
  
Join Date: Jun 2009
Location: North Carolina
Posts: 841
 

Default Re: Using a Smarty tag in PHP code

Using PHP in smarty can be done like this:
Code:
{php}Your PHP code here{/php}

However using PHP within smarty is not recommended as it decreases performance and caching ability is reduced. You should instead create its own php file and then assign into smarty.


Smarty code cant be used in php.
__________________
- Shane Munroe
Reply With Quote