Nice custom validation solution

The validation functionality of CakePHP in the current version is a little bit limited, you can “only” use regular expressions. But often you cannot use regular expressions because your validation rules involve some database queries. Another reason not to use regular expressions is simply that you are not familiar with them and its therefore a pain in the ass to use them ;-)

Felix from presents in his post a nice solution with beforeSave() for doing custom validations. I still have to test it, but it looks very promising. Good job, Felix!

%d bloggers like this: