Skip to content

Instantly share code, notes, and snippets.

@jonathonbyrdziak
Created October 30, 2015 18: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 jonathonbyrdziak/7daeb3827c50563521d2 to your computer and use it in GitHub Desktop.
Save jonathonbyrdziak/7daeb3827c50563521d2 to your computer and use it in GitHub Desktop.
Magento Helper Data Functions
<?php
/**
*
*
*
*
*
*/
/**
* @author "Jonathon Byrd" <support@merchantprotocol.com>
* @author http://merchantprotocol.com/knowledgebase
*
* This class has been created to assist you with your development efforts.
*
*/
class MP_Tutorials_Helper_Data extends Mage_Core_Helper_Abstract
{
/**
* This function triggers an event in Magento. Start with the event name and then follow
* it up with all of the params that you want to pass along.
*
* @param string $event_name
*/
public function trigger_event( $event_name )
{
$args = func_get_args();
unset($args[0]);
return Mage::dispatchEvent($event_name, $args);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment