Created
October 7, 2013 08:38
-
-
Save asika32764/6864543 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// in your component | |
JPluginHelper::importPlugin('group'); | |
$app = JFactory::getApplication(); | |
$app->triggerEvent('onYourEventName', array($param1, $param2)); | |
// in Plugin | |
class plgGroupYourplugin extends JPlugin | |
{ | |
public function onYourEventName($param1, $param2) | |
{ | |
// Do some stuff | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment