Put an id in - cake needs it to write the update statement. It doesn't have to be 'id', just use var $primaryKey = 'some field';
Geoff -- http://lemoncake.wordpress.com On Aug 7, 12:21 am, phpjoy <[EMAIL PROTECTED]> wrote: > i also wonder, where does this redirect happen in cake? > dispatcher? before? > class/method would be great :) > > On Aug 7, 8:51 am, phpjoy <[EMAIL PROTECTED]> wrote: > > > i have a table in my database that doesn't need an id, it's only 1 row > > stored in the DB. > > > i want to edit that row, and whenever i try to edit it -> i get thrown > > to add.http://localhost/admin/config/edit > > redirects tohttp://localhost/admin/config/add > > and gives me this error: > > Missing Method in ConfigController > > You are seeing this error because the action admin_add is not defined > > in controller ConfigController > > > how can i bypass this? > > it doesn't even reach the edit method at the second time, it tries to > > search even before it got to the function. > > > do you guys have other good techniques out there? --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---