How to create module in magento
In this blog post, we will learn how to start magento module development and basic files required setup a module.
You can download module Creator Download
Extract this and paste moduleCreator to your xampp or wamp and open moduleCreator.
e.g 'http://localhost/moduleCreator/'
your module creator looks like this
- In namespace enter your module namespace like your company name etc(required).
- In module field enter your module name(required).
- Others are optional, you can skip them.
- Click on create button.
- Next step is copy all files created by module creator to your magento installation.
- Go to your xampp or wamp and open moduleCreator .
- Open new >> app >> code >> local >> 'Yourmodule' copy this and paste it to your magento installation in same directory.
- Open new >> app >> design >> adminhtml >> default >> default >> layout and copy your module xml file to your magento in same directory.
- Open new >> app >> design >> frontend >> default >> default >> layout and copy your module xml file and paste in your magento in app >> design >> frontend >> default >> 'Yourtheme' >> layout.
- Open new >> app >> design >> frontend >> default >> default >> template and copy your module template folder and paste in your magento in app >> design >> frontend >> default >> 'Yourtheme' >> template.
- Open new >> app >> etc >> modules and copy your module xml file and paste in your magento in same directory.
- Now open your magento site and clear your cache. You can see your newly created module in admin section.
- When creating controller files or block file, etc remember to be careful about case sensitivity of file names. Especially, when you upload your module to linux server the module may stop working, if file cases and class name have not been put in carefully.
- All class names should be case-sensitive as well. Basically, based on the class name, magento includes that file. So, if class name is not correct, the file is not found by magento.
Please support us, Like us on Facebook.
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment