File path: dist/twist/Core/Controllers/BaseAJAX.controller.php
Namespace: Twist\Core\Controllers
Extends: Base
_ajaxRespond
— Encode the response of the AJAX output
Name | Description |
---|---|
[$mxdData = array()] | n/a |
[$blDebug = false] | n/a |
void — No return information has been documented for this function.
<?php
/** --------- Option 1 --------- */
//Register a dynamic route that will direct all function requests to the controller
Twist::Route() -> controller('/baseajax%','\Twist\Core\Controllers\BaseAJAX');
/** --------- Option 2 --------- */
//Or you can register a route to only direct the current request to a particular controller method
Twist::Route() -> get('/baseajax/_ajaxrespond',array('\Twist\Core\Controllers\BaseAJAX','_ajaxRespond'));