July 2015
Beginner to intermediate
260 pages
5h
English
At its core, Magento is a Model-View-Controller (MVC) framework, so in order to make our new route functional, we have to create a new controller that will respond to this specific route. To do this, perform the following steps:
controllers.controllers folder create a file called IndexController.php.The file location is app/code/local/Mdg/Hello/controllers/IndexController.php.
<?php
class Mdg_Hello_IndexController extends Mage_Core_Controller_Front_Action
{
public function indexAction()
{
echo 'Hello World this is the default action';
}
}Read now
Unlock full access