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

Model Validation examples

Hi,

Are there any Model Validation examples around as I have, had a look but can't see how it is implemented. Any links or examples would be appreciated.

Thanks



43.9k
edited Mar '15

Hi,

here an example

or here



7.9k

Its better you implement Command Bus, You just have validate the Command instead validating input form and model

https://php-and-symfony.matthiasnoback.nl/2015/01/responsibilities-of-the-command-bus/