By default, all validators in symfony1.4 have a disabled trim
option. You can enable it by passing it to true
, see here
Symfony 1 trim all spaces of input fields
-
29-06-2022 - |
Question
I'm running an application with Symfony1/ Doctrine1. Is there a simple way to trim all spaces either end of single line input fields? I'm using largely default fields and default admin modules.
La solution
Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow