How to create Magneto frontend (Hello World) module??
- Step 1. Create Global Configuration File
- Step 2. Create Module Configuration file
- Step 3. Create Module Frontend controller
- Step 4. Create Module Frontend Layout file
- Step 5. Create Module Frontend Template file
Step 1. Each Module should have one Namespace & Module name. Name space could be some company name etc. & module name should be something that represents module functionality. So let suppose Namespace is ExtendTree and Module name is FrontendModule. Now Create Global Configuration File inside root directory /app/etc/modules as name "ExtendTree_FrontendModule.xml"
Step 2. Now Create Module Configuration File inside the directory /app/code/local/ExtendTree/FrontendModule/etc as name "config.xml"
Step 3. Now next thing is to create frontend controller inside the directory /app/code/local/ExtendTree/FrontendModule/controllers as name "IndexController.php"
Step 4. Now create frontend layout file inside the directory /app/design/frontend/base/default/layout/extendtree as name "frontendmodule.xml"
Step 5. Last step is to create frontend template file inside the directory /app/design/frontend/base/default/template/extendtree as name "frontendmodule.phtml"
__('Hello World..!!')?>
__('I just Created my first magento frontend module.')?>
That's it..!! Now just run your module by URL as "YOUR_SITE_BASE_URL"/helloworld
Thank you..!!
"The easy way for everything."
No comments :
Post a Comment