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

Form validation

Hello.

I was wondering if you guys have a smart why to use validations? I would like to NOT use the form validations, becuase i have alot of forms that is similar, but can't use the same form validation.

Do you have a smart way to use validations and why?

edited Sep '17

You should read the documentation about validation: https://docs.phalcon.io/en/3.2/validation

Hi @GunslerRage if you have a good validation of models you simply pass the entity and this will be validated against the model.

Now if they are forms without relation to a model, you must add the validators to each field of the same one.

Good luck