Posts Tagged ‘smarty assign math’
khai báo biến tính toán trong smarty framework (assign math smarty)
22/06/2011
Leave a comment
khai báo biến tính toán trong smarty framework ở file template enginee (assign math smarty)
tại file template enginee: file.tpl, file.xtpl,..vv
ví dụ: $product.price = 100
{math assign=”total_price” equation=’x*y’ x=$product.price y=2}
{$total_price} <!– ouput 200 –>
Categories: PHP, Smarty
smarty assign math