Tuesday, November 4, 2014

3.0 - input without model name

Hi people, i have trying to do a simple crud using cake 3.0.

My controller 
https://github.com/llpereiras/meucake3/blob/master/src/Controller/ContatoController.php

My formhelper, it's is a copy of the gourmet/twitterbootstrap
https://github.com/llpereiras/meucake3/blob/master/src/View/Helper/TwitterBootstrapHelper.php

My contatos table
https://github.com/llpereiras/meucake3/blob/master/src/Model/Table/ContatosTable.php

My view contato/enviar
https://github.com/llpereiras/meucake3/blob/master/src/Template/Contato/enviar.ctp

when i post the form, the request->data return without model name and return a simple array with name of the input.

I try to do 

<?=$this->Form->create($contato, ['type' => 'post', 'class' => 'well'])?>

<?=$this->Form->create('Contato', ['type' => 'post', 'class' => 'well'])?>

but nothing work appropriate.

Where i'm wrong or is this a another bug ?

--
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: