Skip to content

Instantly share code, notes, and snippets.

@asika32764
Created October 7, 2013 08:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save asika32764/6864543 to your computer and use it in GitHub Desktop.
Save asika32764/6864543 to your computer and use it in GitHub Desktop.
<?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