Check out this slide presentation:
http://www.thinkingphp.org/2008/02/26/with-jquery-cakephp-to-world-domination-slides/
On slide 31, it gives you a function for your app controller called
setJson.  On slide 32, it shows how to use setJson in your
controller.  On slide 33, it shows the code to put in your layout to
make your json available to your views.  And on slide 34, it shows how
to access that data from jquery.

I hope that helps.
hydra12

On Apr 3, 8:42 am, Tom <[EMAIL PROTECTED]> wrote:
> Thanx, but i would like to use it with Jquery.
> I have a filled array in php, and in a js file i've got :
>
> jQuery(document).ready(
> function()
> {
>         var lastsel;
>
>         jQuery("#list2").jqGrid(
>         {
>         url:'/comms/grid',
>                 datatype: "json",
>                 colNames:['!','Auteur', 'Personne', 'Fonction', 'Raccourci'],
>                 colModel:[ {name:'!', width:120, editable: true, edittype: 
> "select",
> editoptions:{value:"FE:FedEx;IN:InTime;TN:TNT;AR:ARAMEX"}},
>
> ....
> // Here i would like to change the values by my array.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to