Wednesday, December 31, 2008

Re: Controller members

On Wed, Dec 31, 2008 at 5:03 PM, Steven Wright <rhythmicdevil@gmail.com> 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 cake-php@googlegroups.com
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

No comments: