modX.getResponse
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::getResponse¶
Attempt to load the response handler class, if not already loaded. Defaults to MODX\Revolution\modResponse.
Syntax¶
boolean getResponse ([string $class = MODX\Revolution\modResponse], [string $path = ''])
-
$class(string) The class name of the response handler to load. Ignored when themodResponse.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 response handler object was loaded on this or any previous call, false otherwise.
Example¶
$modx->response; // current response handler instance
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










