OnBeforeManagerPageInit
Last updated Jan 20th, 2020 | 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
$306 per month—let's make that $500!
Learn moreEvent: OnBeforeManagerPageInit¶
Loaded right before a manager controller is run and after checking permissions.
- Service: 2 - Manager Access Events
- Group: System
Event Parameters¶
Please note that the event parameters for this event changed in 3.0.0-alpha2.
Name | Description |
---|---|
action | The route or action to load in the current namespace |
namespace | The namespace (as a string) for the current namespace |
namespace_path | The core path for the namespace |
Remarks¶
Previous event | OnManagerPageInit |
---|---|
Next event | OnManagerPageBeforeRender |
File | core/model/modx/modmanagercontroller.class.php |
Class | abstract class modManagerController |
Method | public function render() |
Example¶
Such a plugin will display in the "Error log" which controller has loaded:
<?php
$eventName = $modx->event->name;
switch($eventName) {
case 'OnBeforeManagerPageInit':
print_r($action);
break;
}
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
$306 per month—let's make that $500!
Learn more