implemented for 2.0 in the ErrorHandler and ExceptionRenderer
classes. And because 2.0 uses PDO for the connections database errors
become exceptions. You could always use a custom error handler that
converts errors into exceptions, which will make things like warnings
from mysql become halting exceptions.
-Mark
On Jul 2, 6:46 am, euromark <dereurom...@googlemail.com> wrote:
> i have similar problems with an incorrect status code for MYSQL errorshttp://groups.google.com/group/cake-php/browse_thread/thread/70b6a8b2...
>
> seems like there is a lot to do concerning correct response codes
>
> On 30 Jun., 14:37, lsiden <lsi...@gmail.com> wrote:
>
>
>
>
>
>
>
> > I am writing a CakePHP (cakephp.org) controller. One of the actions,
> > "myAction", responds to AJAX requests. I find it annoying that if
> > anything goes wrong in the action handler, Cake always responds with
> > an error page and an HTTP status of 200, meaning that it fails
> > silently, so I have to open a new window and run the AJAX request
> > directly from the address bar to see the output and find out what went
> > wrong.
>
> > Please see my question to StackOverflow.com for the rest of the
> > details:http://stackoverflow.com/questions/6529588/getting-cakephp-to-return-...
--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
No comments:
Post a Comment