On Wed, Dec 31, 2008 at 5:03 PM, Steven Wright <[email protected]> wrote: > > Ok fair enough. So how does one use the $javascript->object() ? > > I want to pass an array to a javasrcipt variable. >
For ajax actions, just echo a JSON object. There's no point in using set() as that's only going to create a PHP variable for the view. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
