*/ /** * Enabling frontend and backend modules */ stPluginHelper::addEnableModule('appWishesFrontend', 'frontend'); stPluginHelper::addEnableModule('appWishesBackend', 'backend'); /** * Adding nessesary Routing */ stPluginHelper::addRouting('appWishesPlugin', '/wishes/*', 'appWishesFrontend', 'showWishesSite', 'frontend'); stPluginHelper::addRouting('appWishesPlugin', '/wishes/*', 'appWishesBackend', 'responsiveConfig', 'backend'); /** * Dodanie do konfiguracji */ stConfiguration::addModule('appWishesPlugin', 'group_2'); $dispatcher->connect('smarty.slot.append', array('appWishesListener', 'append')); $dispatcher->connect('smarty.slot.prepend', array('appWishesListener', 'prepend'));