Re: Changing the controller in the $ajax->form helper.
Try this: $ajax->form(array('action' => 'add'), 'post', array('model' => 'action')) David On Apr 22, 9:26 am, dizz <[EMAIL PROTECTED]> wrote: > Hey, I've been trying to figure this out for a few hours now. I am > either missing something or you cannot change thecontrollerin the > helper and that it will always default to thecontrollerof the parent > page. > > For instance I am trying to add comments on a user profile, the parent > profile is "Users" and no matter what I try putting in the helper > (array like a normalformhelper, url forajaxhelpers) it keeps on > defaulting to the Userscontroller. > > Any help would be greatly appreciated thanks. --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: Changing the controller in the $ajax->form helper.
try with this form('Name_of_controller', array('action' => 'name_of_action')); ?> On Tue, Apr 22, 2008 at 3:26 AM, dizz <[EMAIL PROTECTED]> wrote: > > Hey, I've been trying to figure this out for a few hours now. I am > either missing something or you cannot change the controller in the > helper and that it will always default to the controller of the parent > page. > > For instance I am trying to add comments on a user profile, the parent > profile is "Users" and no matter what I try putting in the helper > (array like a normal form helper, url for ajax helpers) it keeps on > defaulting to the Users controller. > > Any help would be greatly appreciated thanks. > > > -- Axel --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Changing the controller in the $ajax->form helper.
Hey, I've been trying to figure this out for a few hours now. I am either missing something or you cannot change the controller in the helper and that it will always default to the controller of the parent page. For instance I am trying to add comments on a user profile, the parent profile is "Users" and no matter what I try putting in the helper (array like a normal form helper, url for ajax helpers) it keeps on defaulting to the Users controller. Any help would be greatly appreciated thanks. --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---