Reputation: 527
I am using Zend Framework and LocalizedToNormalized and NormalizedToLocalized to make a localized form. The problem is in the whole application for example I want to use global options such as precision and number format.
One way I found is to create somewhere static instances of the filters, applied with options and use them everywhere I want, but I want to know if there is a better solution.
Upvotes: 1
Views: 419
Reputation: 22162
You could use Zend_Locale and set an instance of it in the Zend_Registry so you could use it in the whole application. Remember that Zend_Registry is just like using a global var. It is not stored in a session or something like that.
Upvotes: 1