Thank you for your reply. But converting the number to decimal point is not the problem. My question is where to do that conversion. I have the str_replace function in the public function store of JTable. It works, but I don't believe that is good programming. Since now I have to put a line of code there for each decimal field in my application. Instead I want to use a decimal field type that handles decimal dot to comma conversion and back for all decimal fields in the application.
So my question boils down to: "What is the best place to put the code to convert decimal comma to decimal dot before saving to the database?". Can I accomplish that in a field, or maybe a plugin?
via Joomla! http://ift.tt/1nRVS23
So my question boils down to: "What is the best place to put the code to convert decimal comma to decimal dot before saving to the database?". Can I accomplish that in a field, or maybe a plugin?
Statistics: Posted by Qu3ry — Fri Jul 18, 2014 7:07 am
via Joomla! http://ift.tt/1nRVS23
No comments:
Post a Comment