Created
October 30, 2015 18:38
-
-
Save jonathonbyrdziak/7daeb3827c50563521d2 to your computer and use it in GitHub Desktop.
Magento Helper Data Functions
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 | |
/** | |
* | |
* | |
* | |
* | |
* | |
*/ | |
/** | |
* @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