View Single Post
  #9  
Old 11-24-2002, 09:43 AM
 
derrick92130 derrick92130 is offline
 

Advanced Member
  
Join Date: Nov 2002
Location: San Diego, California USA
Posts: 68
 

Default variable use in PHP and Smarty templates

Can you tell us what the programming logic is that you are trying to do? We may be able to give you an alternative way to capture the information in the PHP program (usually through storage in an array that is passed the the TPL) for use later in the Smarty template.

I have used both 100% PHP applications and now Smarty templates through the use of X-Cart. I have found that once I got through the understanding of the strengths of both, I am able to implement changes and new customer requirements quite quickly.

I have passed variables from PHP to Smarty templates and then back to PHP, but not to PHP as an included file, only as a call from a form, etc. In that case you just pass it as an argument. Obviously, that won't work in the include.
__________________
-Derrick
FreeRangeMinds, LLC
Reply With Quote