Sindey, Marcelo is right. The default action for a form is to post to the $controller->add() method. You have to override it for other actions
On Feb 18, 12:00 am, Sidney <aussiealthomp...@gmail.com> wrote: > I think the default action is to self-post i.e. the form post/get goes > to the same controller/action that served the view with the form on > it. This is a normal design convention and seems logical to me > (although quite a noob myself). Perhaps I misunderstand your question? > > On Feb 17, 8:01 am, Marcelo Andrade <mfandr...@gmail.com> wrote: > > > Hi there, > > > By the CakePHP conventions, the view's name must be the same > > as an action in a controller. A common mistake for the newbies is > > when creating a form in the view is that the > > > echo $form->create('MyModel'); > > > defaults to generate a form for the "add" action. But I think that > > should be more intuitive that it's defaults to the action with the > > same name as the view. Isn' it? > > > Best regards. > > > -- > > MARCELO DE F. ANDRADE (aka "eleKtron") > > Belem, PA, Amazonia, Brazil > > Linux User #221105 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---