hi, thanks. i know why. i made it. i forced that error to occur to simulate a failed saving to see if the user gets a proper feedback, which he does not. so i was right. question is:
how can I handle this error throwing that my data will get returned correctly???? big big thx :) On 30 Jan., 21:58, phpMagpie <[email protected]> wrote: > If the controller method throws an error it will stop the data being > returned correctly and will stop your ajax call from functioning as > expacted. > > You need to figure out why Cake is spitting out "uncaught exception: > Invalid JSON" > > With my jQuery AJAX stuff I return values using: > > $response = json_encode($results); > echo $response; > > Not sure if this make's any difference. -- 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 [email protected] For more options, visit this group at http://groups.google.com/group/cake-php
