| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
result of my php function inside a tpl.. how? | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() for example, I have this part of a tpl
<TR> <TD width="20%"><B>{$lng.lbl_order_id}:</B></TD> <TD width="10"> </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 |
|||||||
#2
|
|||||||
|
|||||||
![]() {php}
$theresultvariable = yourphpcodetogettheresultgoeshere; smarty->assign("result",theresultvariable); {/php} |
|||||||
|
|||
X-Cart forums © 2001-2020
|