I sometimes do a print_r($data); in the view / response code just to see whats coming back if im getting noting / errors just so I can "visually" see something to pin-point whats going wrong, if there is infact data and work from there.
Or execute a debug(); exit(); in the function itself right before the save or delete so its runs but does not complete the request so I can see if everything up to the save / delelte is working and what I have right before that. -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of ibejohn818 Sent: Wednesday, February 09, 2011 3:17 PM To: CakePHP Subject: Re: Is there any way to display error when working on ajax request? Since your method of request for the action is ajax, I'm assuming it's publicly accessible. So the best way to dev it is thru the browser then apply your ajax formatting to the action one you are completed with it. www.mysite.com/ajax/my_action On Feb 9, 10:43 am, cake-learner <[email protected]> wrote: > I set up one class to handle all ajax request called ajax_controll. > The thing is everytime I develop a function and there is some kind of > syntactic errors it returns empty. Usually take a couple of hours to > develop > one simple query because of this. Is it anyway to spit out the php > error on > browser( maybe there is firebug plugin? ) -- 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 -- 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
