Re: using jquery and json on cakephp

2008-04-16 Thread krusty999
You must set some variable for te output. Controller: $this-set('myVariable', $this-User-findAll()); Configure::write('debug',0); //When output Json. Then in your view app/views/users/data.ctp you can leave empty. But in your view app/view/users/json/data.ctp you put: ?php echo

Re: using jquery and json on cakephp

2008-04-16 Thread Renan Gonçalves
[EMAIL PROTECTED]:* Configure::write('debug',0); //When output Json. Put this line at json's layout. []'s On Wed, Apr 16, 2008 at 4:41 PM, krusty999 [EMAIL PROTECTED] wrote: You must set some variable for te output. Controller: $this-set('myVariable', $this-User-findAll());

Re: using jquery and json on cakephp

2008-04-16 Thread Freshow
I checked it again ,but the problem is always, I test it and find that when call ./post/add.json , the function in post/json/add.ctp not work for me, it means ./post/add.json not associate with ./post/json/ add.ctp , right? On 4月17日, 上午3时41分, krusty999 [EMAIL PROTECTED] wrote: You must set

Re: using jquery and json on cakephp

2008-02-17 Thread mike
Thanks dude:) I Gonna try this out On Feb 17, 9:50 am, bingo [EMAIL PROTECTED] wrote: Here are the things that I did to get my jquery, json, and ajax working 1. I included this line in app/config/routes.php Router::parseExtensions('rss', 'json', 'xml'); //notice json over there

using jquery and json on cakephp

2008-02-16 Thread mike
How do I send and process ajax request using jquery's .getJson() on cakephp. I need to setup dynamic dropdown box? Thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send

Re: using jquery and json on cakephp

2008-02-16 Thread bingo
Here are the things that I did to get my jquery, json, and ajax working 1. I included this line in app/config/routes.php Router::parseExtensions('rss', 'json', 'xml'); //notice json over there 2. Then, I created a folder named json in my views/post..so my views folder structure