PHP Classes

File: template/Code/module

Recommend this page to a friend!
  Classes of Fabrice Fesch   Melis Tool Creator   template/Code/module   Download  
File: template/Code/module
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: Melis Tool Creator
Module for the Melis CMS to create tools
Author: By
Last change:
Date: 1 year ago
Size: 622 bytes
 

Contents

Class file image Download
$sm = $e->getApplication()->getServiceManager(); $routeMatch = $sm->get('router')->match($sm->get('request')); if (!empty($routeMatch)){ $routeName = $routeMatch->getMatchedRouteName(); $module = explode('/', $routeName); if (!empty($module[0])) if ($module[0] == 'melis-backoffice'){ // attach listeners for Melis (new \ModuleTpl\Listener\SavePropertiesListener())->attach($eventManager); (new \ModuleTpl\Listener\DeleteListener())->attach($eventManager); } }