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

Validation Documentation WRONG

Hey Guys, fine?

Your documentation for VALIDATION is wrong.

Look.

Your example to StringLength:

->add('telephone', new StringLength(array( 'minimumMessage' => 'The telephone is too short', 'min' => 2 )));

RIGHT WAY (i see this in your C codes)

$this->add('telephone', new StringLength(array( "max" => 130, "min" => 3, "messageMaximum" => "We dont like really long names", "messageMinimum" => "We want more than just their initials" )));

minimumMessage, maximumMessage not work....

Thanks. See ya. L.B.



98.9k

Thanks for pointing it out, could you please submit a PR with the fix? https://github.com/phalcon/docs/tree/master/en