Skip to content

Instantly share code, notes, and snippets.

@sashas777
Last active December 15, 2015 20:55
Show Gist options
  • Save sashas777/0223bb98b5abb8902cb2 to your computer and use it in GitHub Desktop.
Save sashas777/0223bb98b5abb8902cb2 to your computer and use it in GitHub Desktop.
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