Saturday, June 13, 2015

Re: Is there a working Localized plugin for CakePHP 3.0?

I can show you the real example tomorrow if you didn't found a solution

Le 13 juin 2015 19:03, "Anthony GRASSIOT" <antograssiot@gmail.com> a écrit :

well it can be anywhere. Personally I baked a plugin and put my class under src/Model/Validation/FrenchValidation.php under the App/Model/Validation namespace for example.

Le 13 juin 2015 17:52, "Paulo Terra" <pterra@gmail.com> a écrit :
Hi José and Anthony, Thank you for your help, but the explanation is very poor. It does not say how to find the validation class, the folder it should be, not even an example of how it should be constructed, the method and if you have more then one validation to construct.

Is there a better documentation about this?

thanks in advance.

2015-06-13 12:27 GMT-03:00 Paulo Terra <pterra@gmail.com>:

This is exactly what I was reading at the moment. Thanks José.

Em 13/06/2015 12:10, "Anthony GRASSIOT" <antograssiot@gmail.com> escreveu:

he's refering to this:
http://book.cakephp.org/3.0/en/core-libraries/validation.html#adding-validation-providers

Le 13 juin 2015 16:49, "Paulo Terra" <pterra@gmail.com> a écrit :
Thank you José for your reply.

I need to validate brazilian ID´s CPF and CNPJ, brazilian ZIP Code and phones.

When you say custom validation provider do you mean the model in cake?


Em sábado, 13 de junho de 2015 04:13:25 UTC-3, José Lorenzo escreveu:
There isn't yet. What do you need from the plugin?

If it is the validation rules, you can just copy the rules from the old Localized plugin into your custom validation provider.

On Friday, June 12, 2015 at 1:06:04 PM UTC+2, Paulo Terra wrote:
Hi, I have been looking for a plugin to validate Person ID, Phone, ZIP Code, etc, but all I can find is for old versions of CakePHP. Does anybody know where I can find a working version for CakePHP 3.0?

Thanks.

Paulo Terra

--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscribe@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.

--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

---
You received this message because you are subscribed to a topic in the Google Groups "CakePHP" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/cake-php/Zn05icCM6rQ/unsubscribe.
To unsubscribe from this group and all its topics, send an email to cake-php+unsubscribe@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.

--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscribe@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.

--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscribe@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.

No comments: