Cake PHP

TwitterFacebook
Get flash to fully experience Pearltrees
http://cakebaker.42dh.com/2007/01/03/validation-with-cakephp-12/ Up to now the validation support consisted of four constants (VALID_NOT_EMPTY, VALID_NUMBER, VALID_EMAIL, and VALID_YEAR), everything else you had to do yourself. The new validation class in CakePHP 1.2 is a bit more powerful ;-) The aforementioned constants still work in 1.2, but they are deprecated, so for new code you shouldn’t use them. The usage of the new validation rules follows the following pattern (in your model):

Validation with CakePHP 1.2