How to create Events and Observers in magento

Event is very important on any languages,today i will tell you in this article, how to create event in magento.Magento support event driven programming.Magento has event observer class,which used to handled all event process in magento.Logic is that , Event will created by programmer and magento observer will listen your event and execute your logic.

You can also check other tutorial of magento,

Step 1: First we we register the module in magento.we need to put the below file in app/etc/namespace_modulename.xml

Step 2: We define the event in module config file,here class name is boom_order_model_observer and method is myOrderProcess.We will define all logic in this method.

Step 3: Finally we will define class with method definitions.

I hope its help you!.