You should not return from controller but use view to render AJAX response.
On Nov 9, 9:51 pm, Amit <[email protected]> wrote: > The general question is - Is there a way to access Helpers during an > AJAX response? > > I have a form that contains a dropdown and a group of radio buttons. > When a new item is selected from the dropdown, an XMLHTTPRequest is > sent to the server to get the new collection of radio buttons. > > Right now, my controller determines if its an AJAX request, queries > for the list of items, manually generates the HTML for the radio > buttons, and sends the response. I know that the View layer offers a > FormHelper to "automagically" create the form element ($form->radio > ()), is there anything similar available when creating an AJAX > response? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CakePHP" 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 -~----------~----~----~----~------~----~------~--~---
