Try to leave only one field to save then add fields one by one to get the problematic field.
Do you use any behaviors with this model? if you do remove them and try to save.
-- Do you use any behaviors with this model? if you do remove them and try to save.
On Sun, Oct 2, 2011 at 6:14 PM, CrotchFrog <crotchfrog@gmail.com> wrote:
Just wondering if this issue has been resolved? I'm having the same
problem with 2.0 RC2.
On Sep 30, 4:46 am, "reynie...@gmail.com" <reynie...@gmail.com> wrote:
> Return "Entro" so it goes trough (!empty($this->data)) :-(
>
> Ing. Reynier PĂ©rez Mira
> Cel: +58 416.921.7406
> Correo: reynie...@gmail.com / reynie...@hotmail.com
>
> On Fri, Sep 30, 2011 at 4:10 AM, Jeremy Burns | Class Outfit <
>
>
>
>
>
>
>
> jeremybu...@classoutfit.com> wrote:
> > Try this:
>
> > if (!empty($this->data)) {
> > $this->Modalidad->create();
> > if ($this->Modalidad->save($this->data)) {
> > die("Entro");
> > } else {
> > $this->Session->setFlash('Ocurrieron errores salvando los datos',
> > 'default', array('class' => 'example_class'));
> > die(debug($this->Modalidad->validationErrors));
> > }
> > /* you don't need to use $this->render(), so get rid of it
> > } else {
> > $this->render();
> > */
> > }
>
> > Jeremy Burns
> > Class Outfit
>
> > Tel: +44 (0) 208 123 3822
> > Mob: +44 (0) 7973 481949
> > Skype: jeremy_burns
> >http://www.classoutfit.com
--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
No comments:
Post a Comment