How to assign the formatted values ?
| From: | James Mao | Date: | Mon, 14 Nov 2005 14:47:42 +0000 |
| Subject: | How to assign the formatted values ? | ||
| Groups: | php.smarty.dev | ||
| Request: | Send a blank email to php-smarty-dev+get-2806@lists.php.net to get a copy of this message | ||
Hi,
I have a variable $page_load_time, and with value = 1.7123445
and in template i wrote:
{assign var="page_load_seconds", value=$page_load_time|string_format:"%.4f"}
but {$page_load_seconds} output nothing, what's wrong here?
Anyone can help me ?
Thanks,
james.