Thanks hydra12 for the forms tutorial. It will help a lot of people. Best regards.
On 12 ene, 14:47, foxmask <[EMAIL PROTECTED]> wrote: > on my side i get the grid and the string : > {"total":2, "users":[{"username":"foxmask", "title":"", > "realname":""}, {"username":"Invité", "title":"", "realname":""}]} > > display just after the grid . > > On Jan 11, 11:15 pm, hydra12 <[EMAIL PROTECTED]> wrote: > > > > > OK, the forms tutorial is up now. You can find it > > here:http://www.ntatd.org/mark/?p=31. Have a great weekend! > > > On Jan 11, 8:38 am, hydra12 <[EMAIL PROTECTED]> wrote: > > > > That's what it's supposed to do. getAllUsers just returns a json > > > string with data from the database. Now call myroot/users/index. It > > > should show a datagrid with all the json data in it. The way it works > > > is this: index is pretty much blank, but it loads myScript.js (or > > > whatever you named it). myScript.js calls getAllUsers on line 17: > > > > proxy: new Ext.data.HttpProxy({url: 'http://'+host+'/ext/users/ > > > getAllUsers'}), > > > > When you call index, it should call getAllUsers and load the data > > > returned into your store. When you render your datagrid, it pulls > > > data from the store and puts it in the grid. The fact that you are > > > getting the json string when you call getAllUsers directly means > > > you're on the right track. Let me know if I can help. > > > > BTW, I'm about 1/2 way done on a forms tutorial . . . > > > > hydra12 > > > > On Jan 11, 8:13 am, inma <[EMAIL PROTECTED]> wrote: > > > > > Thank you Hidra12! > > > > > I read your datagrid tutorial for ext-2.0. > > > > > I'm using ext-2.0 and CakePHP 1.2 Beta, too. > > > > > But when I call to myroot//users/getAllUsers, it shows that: > > > > > {"total":8, "users":[{"id":6, "username":"archangel", > > > > "fullname":"Worthington, Warren"}, {"id":2, "username":"cyclops", > > > > "fullname":"Summers, Scott"}, {"id":8, "username":"gambit", > > > > "fullname":"LeBeau, Remy"}, {"id":1, "username":"hydra12", > > > > "fullname":"Buckner, Mark"}, {"id":5, "username":"iceman", > > > > "fullname":"Drake, Bobby"}, {"id":3, "username":"nightcrawler", > > > > "fullname":"Wagner, Kurt"}, {"id":7, "username":"storm", > > > > "fullname":"Munroe, Ororo"}, {"id":4, "username":"wolverine", > > > > "fullname":"Logan"}]} > > > > > On 10 ene, 21:37, hydra12 <[EMAIL PROTECTED]> wrote: > > > > > > OK, I did some searching and found this > > > > > thread:http://groups.google.com/group/cake-php/browse_thread/thread/32d4c152...- > > > > > Ocultar texto de la cita - > > - Mostrar texto de la cita - --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---