modX.getRequest
Last updated Apr 6th, 2019 | Page history | Improve this page | Report an issue
Support the team building MODX with a monthly donation.
The budget raised through OpenCollective is transparent, including payouts, and any contributor can apply to be paid for their work on MODX.
Backers
Budget
$194 per month—let's make that $500!
Learn moremodX::getRequest¶
Attempt to load the request handler class, if not already loaded. Defaults to MODX\Revolution\modRequest.
Syntax¶
boolean getRequest ([string $class = MODX\Revolution\modRequest], [string $path = ''])
-
$class(string) The class name of the request handler to load. Ignored when themodRequest.classsystem setting is set — the setting wins. -
$path(string) Unused inmodX: the class is resolved through the autoloader, no path is read.
Returns true if a valid request handler object was loaded on this or any previous call, false otherwise.
Example¶
$modx->request; // current request handler, an instance of MODX\Revolution\modManagerRequest in the manager
See Also¶
Support the team building MODX with a monthly donation.
The budget raised through OpenCollective is transparent, including payouts, and any contributor can apply to be paid for their work on MODX.
Backers
Budget
$194 per month—let's make that $500!
Learn more










