Jump to main content Jump to doc navigation

modX::getRequest

Attempt to load the request handler class, if not already loaded. Defaults to modRequest.

Syntax

API Doc: modX::getRequest()

boolean getRequest ([$string $class = 'modRequest'], [$path $path = ''])

Example

Load a custom Request handler class called 'myRequest' from '/path/to/myrequest.class.php':

$modx->getRequest('myRequest','/path/to/');

See Also