Table of Contents
Backend requests are typically used to either accept some user-submitted data and process it somehow, or to return data via Ajax. This section shows you how to respond to actions accordingly.
A request is either going to be an Ajax request or it isn't. If it's not, you either want to return the user back to the web site, or you want to display some kind of message to them.
If it is an Ajax request, there's no use in redirecting the user anywhere since it will be ignored. In this case you either want to send back some data, or you want to do nothing.