View Single Post
  #1  
Old 09-09-2003, 07:53 PM
  finestshops's Avatar 
finestshops finestshops is offline
 

eXpert
  
Join Date: Oct 2002
Location: Toronto, Canada
Posts: 335
 

Default Use variables from smarty in PHP

Help guys!!!

I'm trying to assign variable in welcome.tpl:

{ config_load file="special.tpl" }
- works fine - get parsed to other tpl as {#specialid#}

and tried this one

{assign var="specialid" value="71"}
- works too - get parsed to other tpl as {$specialid}

how to use this variable in php script which is included
in home.php like this:

include "../modules/Special/special.php";

???

Everything works if I hard code variable directly
in php, but I have to send it from tpl

Is there anything like "$smarty.specialid" to use in php scripts?

Thank you
__________________
Best regards,

Anton Pachkine
finestshops.com/x-cart
Reply With Quote