Zend Framework Forum

Go Back   Zend Framework Forum > Zend Framework Components > Internationalization (i18n) & Localization (l10n)

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 06-26-2009, 10:57 AM
Junior Member
 
Join Date: Jun 2009
Posts: 1
Default Forms and Float Values

I use ZF 1.8.

My problem. The user will see 1,2 and the database need 1.2 by a float field.

LocalizedToNormalized as a filter on a form element is working
1,2 is stored as 1.2 in the database.

But what is, with the way from database to form.
If I load a 1.2 into the form, the element displays 12.
If I load a 1,2 into the form, the element display 1.2.

But never it shows the right value 1,2.

On my form-element I use a LocalizedToNormalized, and after reading my data with a Zend_Db_Table_Abstract implementation i use manualy a NormalizedToLocalized filter. Thats made a 1,2 from 1.2.

But the form show 1.2.

No I am very confused. Thanks for your help.

By the way, zend is very powerfull and if all question are answered the solutions are short and simple. But the track to the right solutions can be long and painfull.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT. The time now is 02:18 AM.


Designed by: Miner Skinz Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0