Hi, As usual, I solved it after I sent this email. The problem was that I was creating wrongly the form in the view:
<?php echo $form->create('clans'); ?> Instead of: <?php echo $form->create('Clan'); ?> That was because I was having another error before when using it correctly and in the first way the error didn't appear. I figured uot that the error that appeared when creating the form correctly was because I had in the model the $validate variable defined but no validations defined in it. When I commented that definition it worked. Thanks anyway. On Feb 10, 10:38 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Hi, > > I'm migrating an application from cake 1.1 to the latest beta of 1.2 > and I'm getting this error on any action that tries to access the > model object: > > Notice (8): Undefined index: Clan [APP/controllers/ > clans_controller.php, line 85] > > The line throwing the error is this one: > > if($this->Clan->save($this->data['Clan'])) > > For some reason the Clan model object isn't defined. I don't know if > things are done differently on cake 1.2 but in 1.1 it just worked. I > copied the models, views and controllers to the new 1.2 installation, > changed the extensions from the views to .ctp and modified them to use > the new Form helper class. That was everything I did to migrate my > code, I'm missing something ?? the actions that query the database > work ok, for example to list the entries in the table or the edit > action when the edit form is filled, just when trying to update the > entry or add a new one I get that error. > > I'm, new to cake this is my first application and I'm about to throw > the towel, I have been fighting with this for all the weekend and I > have no clue what's wrong with it. I have also asked on the IRC > channel but no answers. So please if anybody can help me with this, > I'm sure it's a stupid thing I'm doing wrong or missing but I can't > figure it out. > > Thanks. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---