The fastest easiest way to get it right.

Returning Errors with JSON

If you wish to raise errors to send back to the browser, use the x6error() function. The function takes a single argument, a string, which describes the error.

You can call this function any number of times. Calling this function does not effect your PHP execution at all.

When you return an error to the browser, all errors together will be shown to the user in a popup. The x6.json.process() method will also return false.

comments powered by Disqus
Home |  Documentation |  Download |  Credits |  Contact |  Login
Andromeda © Copyright 2004-2013, Licensed under the GPL Version 2