Hello,
I normally do all the validations (e.g. valid email, digits only etc) on php
script when a page is post back to the server, and if all validations are
passed then execute the method of the class to save the data. There is no
validations done in class itself (in setter methods for public properties).
Is this the right thing?

1. what is the best place to run the validations? I mean should it be done
in the controller/script or should it be done by the business class itself?
2. Should i do the validations in both script and in class as well?
3. Can anyone provide me some links about best practices for the
validations?

Thanks.
-- 
View this message in context: 
http://www.nabble.com/Some-help-needed-%28Validation%29-tp23738620p23738620.html
Sent from the Zend Framework mailing list archive at Nabble.com.

Reply via email to