Jump to main content Jump to doc navigation

Event: OnBeforeManagerPageInit

Loaded right before a manager controller is run and after checking permissions.

  • Service: 2 - Manager Access Events
  • Group: System

Event Parameters

Name Description
action The config array of current manager controller.
filename The filename of the controller being loaded. (Deprecated since 2.2)

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

  • modmore
  • STERC
  • Digital Penguin
  • Jens Wittmann – Gestaltung & Entwicklung
  • Fabian Christen
  • Dannevang Digital
  • Sepia River Studios
  • CrewMark
  • Chris Fickling
  • deJaya
  • Lefthandmedia
  • Murray Wood
  • eydolan
  • Following Sea
  • Anton Tarasov
  • Stéphane Jäggi
  • Raffy
  • Snow Creative
  • A. Moreno
  • Nick Clark
  • JT Skaggs
  • Helen
  • YJ
  • krisznet
  • Richard
  • Yanni

Budget

$301 per month—let's make that $500!

Learn more