We have moved our forum to GitHub Discussions. For questions about Phalcon v3/v4/v5 you can visit here and for Phalcon v6 here.

Invo - what is the purpose of validation in RegisterForm?

Hi! I'm making registration on my app. I copied what invo has, and found that registrationform is useless. The real validation is happening in User model.

I just want to know if the validation in form should give me some benefits over validation in the user model (when save is made)?



43.9k
Accepted
answer

Hi,

forms are usefull if (imho) you're not dealing with a database/model mapping, eg: contact form, email submission and so on