Skip to content

Instantly share code, notes, and snippets.

@asika32764
Created October 7, 2013 08:38
Show Gist options
  • Select an option

  • Save asika32764/6864543 to your computer and use it in GitHub Desktop.

Select an option

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