I have a html form to save projects in cakephp. i want to restrict the user to save same project name. If any body type the same project name for that i applied the 'unique' validation in model but if anybody enter the same name with spaces before or after the project name it accepts it and store into the database.THat is the issue. I want to remove that extra spaces before save.
Please help.