Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Magento Dispatch Observer
<?php
class Mage_Customer_AccountController extends Mage_Core_Controller_Front_Action
{
....
/**
* Dispatch Event
*
* @param Mage_Customer_Model_Customer $customer
*/
protected function _dispatchRegisterSuccess($customer)
{
Mage::dispatchEvent('customer_register_success',
array('account_controller' => $this, 'customer' => $customer)
);
}
....
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.