Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

result of my php function inside a tpl.. how?

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 07-18-2007, 01:12 AM
 
Ginestra Ginestra is offline
 

Advanced Member
  
Join Date: Sep 2003
Posts: 81
 

Talking result of my php function inside a tpl.. how?

for example, I have this part of a tpl

<TR>
<TD width="20%"><B>{$lng.lbl_order_id}:</B></TD>
<TD width="10">&nbsp;</TD>
<TD width="80%"><TT><B>#{$order.orderid}</B></TT></TD>
</TR>

I have my function in php that result something in html ($result = "html code bla bla bla" in which way I can use this variable $result inside this tpl?
Where I must put my function?
For example, I want to use $result and not $order.orderid.
__________________
4.1.10 Gold
Reply With Quote
  #2  
Old 07-18-2007, 05:58 AM
 
inebriate inebriate is offline
 

eXpert
  
Join Date: May 2006
Posts: 301
 

Default Re: result of my php function inside a tpl.. how?

{php}
$theresultvariable = yourphpcodetogettheresultgoeshere;

smarty->assign("result",theresultvariable);
{/php}
__________________
x-cart pro 4.0.18
linux
www.fabric8d.com (currently undergoing construction)
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 11:10 AM.

   

 
X-Cart forums © 2001-2020