widget where brought in beacuse apparently the problem was about
number formatting in forms.

if talking about view sprintf is definitely overkill compared to "number"

<?php echo number($model->getPrice(), 2);?>

;-)



On Wed, Feb 11, 2009 at 6:34 PM, Lee Bolding <[email protected]> wrote:
>
> any reason you can't use sprintf????
>
> All this talk of filters, widgets... it's a little overkill, isn't it?
>
> <?php echo sprintf("%01.2f", $model->getPrice()); ?>
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to