Bare/ajax routes are deprecated. Not to mention crappy-looking. Use parseExtensions().
On May 31, 6:42 am, "R. Rajesh Jeba Anbiah" <[EMAIL PROTECTED]> wrote: > On May 31, 2:19 pm, macfurax <[EMAIL PROTECTED]> wrote:> I try it, works fine > for XML and RSS ! > > > I would like to add a json extention ... > > I add a json folder in my views/[model] and a default.ctp layouts in > > layouts/json folder. > > I even make an empty JsonHelper class. > > > Bu when I callhttp://localhost/cake_1_2/portfolios.json > > it return me the same HTML page ashttp://localhost/cake_1_2/portfolios > > <snip> > > For JSON, you don't need webservice, IMHO. But, enough to access > the page with bare/ajax prefix:http://example.com/bare/controller/action > orhttp://example.com/ajax/controller/action > > -- > <?php echo 'Just another PHP saint'; ?> > Email: rrjanbiah-at-Y!com Blog:http://rajeshanbiah.blogspot.com/ --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Cake PHP" 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 -~----------~----~----~----~------~----~------~--~---
