How to extend zend form element to create customized currency field.
For example:
$amount = new Example_Form_Element_Currency(1234);
The out put should be like this: $1,234.00.
I want a custom helper for currency.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Sounds like you’re looking to apply a filter.
I don’t think there’s a built-in currency filter however it wouldn’t be difficult to create one to run the submitted value through
number_format()or similar.