/** * @param PluginBootstrap $bootstrap */ public function __construct($bootstrap) { $this->bootstrapPath = $bootstrap->Path(); $this->bootstrap = $bootstrap; }
/** * @param ActionEventArgs $args */ public function onPostDispatchSecureBackendIndex(ActionEventArgs $args) { $view = $args->getSubject()->View(); $view->addTemplateDir($this->bootstrap->Path() . 'Views/'); $view->extendsTemplate('backend/custom_sort/header.tpl'); }