uhmm, ok On 8/7/07, phpjoy <[EMAIL PROTECTED]> wrote: > > it's just one row in a table, i don't need an increase.. it's always > id=1. > the problem i had was that cakephp wanted an id, and wouldn't send to > "edit". if no id is found, it sends to the "add" method automatically, > so i bypassed it by changing the table. > > -- > yossi > > On Aug 7, 3:47 pm, "Pablo Viojo" <[EMAIL PROTECTED]> wrote: > > Dear phpjoy, > > > > What do you mean with id=1? better use an autoincrement field. > > > > And please sign your messages (at least a nickname) > > > > -- > > Pablo Viojo > > [EMAIL PROTECTED]://pviojo.net > > > > On 8/7/07, phpjoy <[EMAIL PROTECTED]> wrote: > > > > > > > > > well, figuring out how it works, i decided to say.. > > > "fuck it, i'll just add an "id=1" to the table. > > > > > by the way, where does it happen, this redirection? > > > it didn't even get to the method, as if a before filter exists or > > > something else in the core of cakephp. > > > > > On Aug 7, 11:21 am, Geoff Ford <[EMAIL PROTECTED]> wrote: > > > > 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? > > > > >
-- Pablo Viojo [EMAIL PROTECTED] http://pviojo.net --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to [email protected] 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 -~----------~----~----~----~------~----~------~--~---
