Jump to main content Jump to doc navigation

modX.getResponse

Other versions: 3.x — Found a problem? Please edit this page or report an issue.

modX::getResponse

Attempt to load the response handler class, if not already loaded. Defaults to modResponse.

Syntax

API Doc: http://api.modx.com/revolution/2.2/db_core_model_modx_modx.class.html#%5CmodX::getResponse()

boolean getResponse ([$string $class = 'modResponse'], [$path $path = ''])

Example

Load a custom Response handler class called 'myResponse' from '/path/to/myresponse.class.php':

$modx->getResponse('myResponse','/path/to/');

See Also