\AjaxControllerExtension
Catches errors and returns an AjaxHTTPResponse.
Could also add some helpers to controller for ajax functionality.
In the end this may or may not be needed?
- Author: Mark Guinn <mark@adaircreative.com>
Synopsis
class AjaxControllerExtension
extends Extension
{
- // members
- protected $ajaxResponse;
- // methods
- public void onBeforeHTTPError()
- public AjaxHTTPResponse getAjaxResponse()
Hierarchy
Extends
- Extension
Tasks
Line | Task |
---|---|
22 | This should probably prevent the error page from generating in ajax and possibly return a json response |
Members
protected
- $ajaxResponse