Re: Cakephp 3.x patchEntity set "'new' => true" to entity in edit function

2016-04-25 Thread Paulo Terra
Hi Kevin, It worked perfectly!! I just would lime to know why only Addresses need the id. But if you dont know, thats OK. You already relped me!! Thanks a lot! Best regards, Paulo Terra -- Sign up for our Newsletter for updates. http://cakephp.org/newsletter/signup We will soon be

Re: Cakephp 3.x patchEntity set "'new' => true" to entity in edit function

2016-04-20 Thread Paulo Terra
Hi Kekin, it is very kind of you help this poor Cake novice. It have been hard programing days. Ok, if I have a hidden ID field of the Addresses I think it is going to work. But why do I have to put the Addresses ID and the other entities work without it? Here is the form: PS: Thanks again fo

Re: Cakephp 3.x patchEntity set "'new' => true" to entity in edit function

2016-04-19 Thread Paulo Terra
advance! Paulo Terra Em segunda-feira, 18 de abril de 2016 04:50:18 UTC-3, heavyKevy escreveu: > > First off you don't need to cotain users 3 times, > Users.Addresses.Countries includes all 3 tables already. > > Secondly, if the address has the id, it should automatically

Cakephp 3.x patchEntity set "'new' => true" to entity in edit function

2016-04-17 Thread Paulo Terra
rrors' => [], 'repository' => 'Genres' } ], 'user' => object(App\Model\Entity\User) { 'new' => false, 'accessible' => [ 'name&

Re: Carregar endereço a partir do CEP no CakePHP 3 usando AJAX

2016-04-04 Thread Paulo Terra
; > On Sun, Apr 3, 2016 at 7:59 PM, Paulo Terra wrote: > >> Sim, mas existem outros webservices confiáveis também. >> >> Em sábado, 2 de abril de 2016 20:06:03 UTC-3, Nilson Pena escreveu: >>> >>> O correio disponibiliza algum webservice gratuito? >>&

Re: Carregar endereço a partir do CEP no CakePHP 3 usando AJAX

2016-04-03 Thread Paulo Terra
Sim, mas existem outros webservices confiáveis também. Em sábado, 2 de abril de 2016 20:06:03 UTC-3, Nilson Pena escreveu: > > O correio disponibiliza algum webservice gratuito? > > Em sábado, 2 de abril de 2016, Paulo Terra > > escreveu: > >> Estou tentando carregar

Re: Carregar endereço a partir do CEP no CakePHP 3 usando AJAX

2016-04-03 Thread Paulo Terra
-04-02 18:09 GMT-03:00 Paulo Terra >: > >> Estou tentando carregar o endereço a partir do CEP informado pelo >> usuário. Apesar de encontrar várias pessoas perguntando por isso não >> encontro uma resposta que funcione. Alguém já fez isso no CakePHP 3? >> >> -- &g

Carregar endereço a partir do CEP no CakePHP 3 usando AJAX

2016-04-02 Thread Paulo Terra
Estou tentando carregar o endereço a partir do CEP informado pelo usuário. Apesar de encontrar várias pessoas perguntando por isso não encontro uma resposta que funcione. Alguém já fez isso no CakePHP 3? -- Sign up for our Newsletter for updates. http://cakephp.org/newsletter/signup We will so

Re: Form: hasMany fields table validation not working

2016-02-29 Thread Paulo Terra
channel ( > http://webchat.freenode.net/?channels=cakephp&uio=MT1mYWxzZSY5PXRydWUmMTE9MjQ2b8), > depending on who is online of course. Stackoverflow is also usually more > active than the group. > > On Monday, 29 February 2016 16:31:11 UTC+2, Paulo Terra wrote: >> >>

Re: Form: hasMany fields table validation not working

2016-02-29 Thread Paulo Terra
> numeric index. > > > > On Sunday, 28 February 2016 22:07:32 UTC+2, Paulo Terra wrote: >> >> Hi, >> >> I have 3 tables: User, Buyer and Address: >> >> User hasMany Address >> User hasOne Buyer >> Address belongsTo User >> Buyer

Form: hasMany fields table validation not working

2016-02-28 Thread Paulo Terra
Hi, I have 3 tables: User, Buyer and Address: User hasMany Address User hasOne Buyer Address belongsTo User Buyer belongsTo User In the User form (Users/add.ctp): echo $this->Form->input('name',['label' => __('Nome')]); echo $this->Form->input('buyer.cpf',['label' => __('CPF')]); echo $this->Fo

Re: Date format

2015-06-23 Thread Paulo Terra
Hi Gaurav, Thank you for your answer. It did not work. Best regards. 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"

Saving 4 model level by one form and controller

2015-06-21 Thread Paulo Terra
Hi, There are 4 tables: User, Seller, Shopkeeper and Address. The relations are: one User has one Seller, one Seller has one Shopkeeper and one User has many Address. I baked to create all the code I am using. To save the Shopkeeper I use the Shopkeeper Controller and the add.ctp of the Shopke

Date format

2015-06-19 Thread Paulo Terra
) ); I also tryed this at birthdate input configuration but it does not worked: 'format'=> ('d/m/Y') Does anybody know what am I doing wrong? Thanks Paulo Terra -- Like Us on FaceBook https://www.facebook.com/Cak

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

2015-06-14 Thread Paulo Terra
27;french', 'App\Model\Validation\FrValidationRule'); > > > $validator > ->add('phone', 'phone', [ > 'rule' => 'phone', > 'provider' => 'french', > &#

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

2015-06-14 Thread Paulo Terra
e', 'valid', ['rule' => 'date']) ->requirePresence('birthdate', 'create') ->notEmpty('birthdate'); return $validator; } /** * Returns a rules checker object that will be used for

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

2015-06-13 Thread Paulo Terra
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" a écrit : > >> Hi José and Anthony, Thank you for your help, but the explanation is very >> poor. It does not s

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

2015-06-13 Thread Paulo Terra
documentation about this? thanks in advance. 2015-06-13 12:27 GMT-03:00 Paulo Terra : > This is exactly what I was reading at the moment. Thanks José. > Em 13/06/2015 12:10, "Anthony GRASSIOT" escreveu: > >> he's refering to this: >> >> http://book.cakephp

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

2015-06-13 Thread Paulo Terra
This is exactly what I was reading at the moment. Thanks José. Em 13/06/2015 12:10, "Anthony GRASSIOT" 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, "Pa

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

2015-06-13 Thread Paulo Terra
u 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 pl

Is there a working Localized plugin for CakePHP 3.0?

2015-06-12 Thread Paulo Terra
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

Re: Multiple model types specialization/generalization

2015-05-05 Thread Paulo Terra
Hi Allan, how are you? I would like to know if you have solved your issue because it is the same I have! :) Best regards, Paulo Terra Em quarta-feira, 19 de junho de 2013 11:55:25 UTC-3, Allan Diego escreveu: > > Hello, > > How can I implement multiple types of models? >