Re: [SMARTY] losing $ in template
| From: | Monte Ohrt | Date: | Mon, 10 Mar 2003 16:29:45 +0000 |
| Subject: | Re: [SMARTY] losing $ in template | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-8533@lists.php.net to get a copy of this message | ||
This works for me:
index.php
---------
$smarty->assign('price','$59.99');
$smarty->display('index.tpl');
index.tpl
---------
The price is {$price}
OUTPUT:
-------
The price is $59.99
??
Monte
On Fri, 2003-03-07 at 23:13, Steve wrote:
> my data in the debug window is:
>
> $modify->description => $59.95....
>
> in the text area that this data is in the following is displayed
> .95....
>
> Is smarty doing this? It looks to me like it is, because the debug page has
> the correct value, but in the textarea in the form it is changed. i'm not
> using any modifiers in the template.
>
> Any ideas??
>
> Steve
--
Monte Ohrt <monte@ispi.net>