symfony - Data decorating and Symfony2 -


The abstract question is "Data Decorator" bundle for Symfony2? For example:

  • Float - decimals formatting, monetary data requires monetary formatting
  • Integer - formatting - 1'000'000 versus 1.000.000
  • date, time
  • etc

I know that Symfony1 was having some kind of alert but templates which would be exactly as it would It was not right, though, and other problems arose.

Nobody knows what is there? Or what would be the "right" way to solve this problem?

Your question also stands unclear and the answer can be considered primarily opinion-based, but you Know what the basic PHP functions are asking for you, okay?

  • Float, integer formatting:
  • Date / time formatting:

Twig is also about what you are asking for Uses the equivalent function: and filter.

This will be the right standard - and although I do not really have any experience with Symfony1, I have no issue to use only these two functions to use a double Symfony2 project. That is to get you the decorating data.


Comments

Popular posts from this blog

apache - 504 Gateway Time-out The server didn't respond in time. How to fix it? -

c# - .net WebSocket: CloseOutputAsync vs CloseAsync -

c++ - How to properly scale qgroupbox title with stylesheet for high resolution display? -