How to create magento custom module?

Submitted by: Administrator
Steps to create custom Magento module:
Namespace : Viral
Module Name : Mymodule
1) Create directory Mymodule in app/code/local/Viral
2) Create Block, controllers, etc, Module directories. Create controller, block and module file as required.
3) Create module configuration file (app/code/local/Viral/Mymodule/etc/config.xml).
4) Create xml file (app/etc/modules/Viral_ Mymodule.xml)to enable/disable module and tell magento system from which code pool that module will be taken.
Submitted by:

Read Online Magento Job Interview Questions And Answers