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.

Was it helpful?

Solution

By default, all validators in symfony1.4 have a disabled trim option. You can enable it by passing it to true, see here

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top