Okay, maybe you could try a few things.  First, the RequestHandler is a
loaded by default CakePHP component in the release.  It also
automatically (without your explicity setting there) renders the view
using AJAX layout.  You should never send header() information in the
controller, but rather the view.  So, if you want to put that go to
your ajax layout and place it there.  And instead of modifiying the
cake directory's ajax template simply copy it to your
app/views/layouts/ directory and modify it there.  CakePHP check there
before cake's directory when looking for the layouts.

I have used CakePHP with AJAX and the debug set to 2.  It made my pages
look hellaweird, but never didn't return anything.  So, I doubt that is
your problem.

>From what you have said, I think you are making the request and then
parsing the XML response?  And the XML response isn't properly
formatted XML?

Do you have something running like FireBug extension in Firefox that
can examine XMLHTTPRequests and show you them?  VERY useful.  I suspect
you see that your request is valid and being returned, but that the
HTML tables aren't properly formatted for how you are trying to parse.

Have you tried redefining your DEBUG parameter in just the controller
method that you don't want output made for?  I have never tried that
but worth a shot there.  Better that than modifying cake core.


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to