<table data-blogger-escaped-style="width: 100%px;" bgcolor="#CCC8CE" border="0">
<tbody>
<tr>
<td><p><strong>Featured links :</strong></p></td>
</tr>
<tr>
<td><p><a data-blogger-escaped-target="_blank" href="http://www.aurumestates.com/orignal_com_inside2.php?original_booking_id=261&project=Township---Vatika-Express-City---Plots,Vatika-Express-City-Sector-88A-&-88B">plots in Gurgaon, </a><a data-blogger-escaped-target="_blank" href="http://livinggifts.co.in/rakhi">Send Rakhi Gifts To Delhi </a>, <a data-blogger-escaped-target="_blank" href="http://www.guruvinodji.com/horoscope-reading-analysis.html">Horoscope Matching Services</a>, <a data-blogger-escaped-target="_blank" href="http://www.aurumestates.com/orignal_com_inside2.php?original_booking_id=245&project=Emerald-Bay-Sector-104">Puri Emerald Bay Gurgaon</a>, <a href="http://livinggifts.co.in/send-flowers-to-india/send-flowers-to-delhi" target="_blank" data-blogger-escaped-target="_blank">Send flowers Online Delhi</a>, <a data-blogger-escaped-target="_blank" href="http://www.guruvinodji.com/vastu-shastra-services.html">indian vaastu services</a>, <a data-blogger-escaped-target="_blank" href="http://www.aurumestates.com/orignal_com_inside2.php?original_booking_id=244&project=Diplomatic-Greens,-Phase-II-Sector-111">Diplomatic Greens Sector 111 Gurgaon</a> , <a data-blogger-escaped-target="_blank" href="http://www.guruvinodji.com/rudraksha-astrology-services.html">Rudraksha Astrology India</a> , <a data-blogger-escaped-target="_blank" href="http://www.guruvinodji.com/kundli-making-services.html">Kundli Specialist Services</a>, <a href="http://livinggifts.co.in/send-flowers-to-india/send-flowers-to-delhi" target="_blank">Send Flower to Delhi</a>, <a href="http://livinggifts.co.in/Friendship-Day-Gifts" target="_blank">Send Friendship Band to <br />
Delhi</a></p></td>
</tr>
</tbody>
</table>
a. Create a controller class app/code/local/M4U/HelloWorld/controllers/IndexController.php
b. Create a Block class app/code/local/M4U/HelloWorld/Block/HelloWorld.php
Related Links:
Web Design Company India, Indian Website Design Company, Affordable Web Design India, Professional Website Designer India, PHP Developer India
Define Frontend Template :
1. Define page layout in app/design/frontend/M4U/default/layout/helloworld.xml
N.B: Use default instead of M4U as template location if you use default design packages. Means create file in app/design/frontend/default/default/layout/helloworld.xml
2. Create template file app/design/frontend/M4U/default/template/helloworld/helloworld.phtml and write down
N.B: Use default instead of M4U as template location if you use default design packages. Means create file in app/design/frontend/default/default/template/helloworld/helloworld.phtml
Hello World ! I am a Magento Guy..
Hey, new module is ready to run and hit browser with url http://127.0.0.1/projectname/index.php/helloworld/
and see result.
That’s it……..
Is it easy or not ? what you think ?
Coder, Please at first try yourself.
Ohh.., Still are you facing problem ? Lets download full module source code from left panel “BOX” section or let me know.
<tbody>
<tr>
<td><p><strong>Featured links :</strong></p></td>
</tr>
<tr>
<td><p><a data-blogger-escaped-target="_blank" href="http://www.aurumestates.com/orignal_com_inside2.php?original_booking_id=261&project=Township---Vatika-Express-City---Plots,Vatika-Express-City-Sector-88A-&-88B">plots in Gurgaon, </a><a data-blogger-escaped-target="_blank" href="http://livinggifts.co.in/rakhi">Send Rakhi Gifts To Delhi </a>, <a data-blogger-escaped-target="_blank" href="http://www.guruvinodji.com/horoscope-reading-analysis.html">Horoscope Matching Services</a>, <a data-blogger-escaped-target="_blank" href="http://www.aurumestates.com/orignal_com_inside2.php?original_booking_id=245&project=Emerald-Bay-Sector-104">Puri Emerald Bay Gurgaon</a>, <a href="http://livinggifts.co.in/send-flowers-to-india/send-flowers-to-delhi" target="_blank" data-blogger-escaped-target="_blank">Send flowers Online Delhi</a>, <a data-blogger-escaped-target="_blank" href="http://www.guruvinodji.com/vastu-shastra-services.html">indian vaastu services</a>, <a data-blogger-escaped-target="_blank" href="http://www.aurumestates.com/orignal_com_inside2.php?original_booking_id=244&project=Diplomatic-Greens,-Phase-II-Sector-111">Diplomatic Greens Sector 111 Gurgaon</a> , <a data-blogger-escaped-target="_blank" href="http://www.guruvinodji.com/rudraksha-astrology-services.html">Rudraksha Astrology India</a> , <a data-blogger-escaped-target="_blank" href="http://www.guruvinodji.com/kundli-making-services.html">Kundli Specialist Services</a>, <a href="http://livinggifts.co.in/send-flowers-to-india/send-flowers-to-delhi" target="_blank">Send Flower to Delhi</a>, <a href="http://livinggifts.co.in/Friendship-Day-Gifts" target="_blank">Send Friendship Band to <br />
Delhi</a></p></td>
</tr>
</tbody>
</table>
Do you want to create a new page in Magento ? or Do you want to
create a new module in Magento ? If yes, Then ok, just spend 10 minutes
and follow below steps.
Objectives: I will create a new page in Magento whose output will be “Hello World ! I am a Magento Guy..”.
Target: Create a new module called “HelloWorld”
Step 1: Module Declaration
Create app/etc/modules/M4U_HelloWorld.xml and write below code
Step 2: Module ConfigurationObjectives: I will create a new page in Magento whose output will be “Hello World ! I am a Magento Guy..”.
Target: Create a new module called “HelloWorld”
Step 1: Module Declaration
Create app/etc/modules/M4U_HelloWorld.xml and write below code
<? xml version = "1.0" ?> |
6 | < codePool >local</ codePool > |
7 | </ M4U_HelloWorld > |
8 | </ modules > |
9 | </ config > |
a. Create a controller class app/code/local/M4U/HelloWorld/controllers/IndexController.php
1 | class M4U_HelloWorld_IndexController extends Mage_Core_Controller_Front_Action |
2 | { |
3 | public function indexAction() |
4 | { |
5 | $this ->loadLayout( array ( 'default' )); |
6 | $this ->renderLayout(); |
7 | } |
8 | } |
1 | class M4U_HelloWorld_Block_HelloWorld extends Mage_Core_Block_Template |
2 | { |
3 | // necessary methods |
4 | } |
01 | <? xml version = "1.0" ?> |
02 | < config > |
03 | < global > |
04 | < modules > |
05 | < m4u_helloworld > |
06 | < version >0.1.0</ version > |
07 | </ m4u_helloworld > |
08 | </ modules > |
09 | < blocks > |
10 | < helloworld > |
11 | < rewrite > |
12 | < helloworld >M4U_HelloWorld_Block_HelloWorld</ helloworld > |
13 | </ rewrite > |
14 | </ helloworld > |
15 | </ blocks > |
16 |
17 | </ global > |
18 | < frontend > |
19 | < routers > |
20 | < helloworld > |
21 | < use >standard</ use > |
22 | < args > |
23 | < module >M4U_HelloWorld</ module > |
24 | < frontName >helloworld</ frontName > |
25 | </ args > |
26 | </ helloworld > |
27 | </ routers > |
28 | < layout > |
29 | < updates > |
30 | < helloworld > |
31 | < file >helloworld.xml</ file > |
32 | </ helloworld > |
33 | </ updates > |
34 | </ layout > |
35 | </ frontend > |
36 | </ config > |
Web Design Company India, Indian Website Design Company, Affordable Web Design India, Professional Website Designer India, PHP Developer India
Define Frontend Template :
1. Define page layout in app/design/frontend/M4U/default/layout/helloworld.xml
N.B: Use default instead of M4U as template location if you use default design packages. Means create file in app/design/frontend/default/default/layout/helloworld.xml
01 | <? xml version = "1.0" ?> |
02 |
03 | < layout version = "0.1.0" > |
04 |
05 | < helloworld_index_index > |
06 | < reference name = "root" > |
07 | < action method = "setTemplate" >< template >page/1column.phtml</ template ></ action > |
08 | </ reference > |
09 | < reference name = "content" > |
10 | < block type = "helloworld/helloworld" name = "hello" template = "helloworld/helloworld.phtml" /> |
11 | </ reference > |
12 | </ helloworld_index_index > |
13 |
14 | </ layout > |
N.B: Use default instead of M4U as template location if you use default design packages. Means create file in app/design/frontend/default/default/template/helloworld/helloworld.phtml
Hello World ! I am a Magento Guy..
Hey, new module is ready to run and hit browser with url http://127.0.0.1/projectname/index.php/helloworld/
and see result.
That’s it……..
Is it easy or not ? what you think ?
Coder, Please at first try yourself.
Ohh.., Still are you facing problem ? Lets download full module source code from left panel “BOX” section or let me know.