Create the controller of our module

We will create a controller that will output plain text to the frontend. Go to our controller using the link "articles"

Create a folder:


Create a file:


Adding the code:

class My_Articles_IndexController extends Mage_Core_Controller_Front_Action
    public function indexAction()
        echo "<h1>Hello World</h1>";

Adding parameters to the file:


Here we add the following parameters (see comments)

Code for the frontend:

<?xml version="1.0" ?>
   <!-- Code for the frontend --> 

frontName - specifies the url to which our controller will respond. It is better not to use standard or existing names.

Follow the link http://my-magento/articles or if several languages are used http://my-magento/en/articles

Must see the text: Hello World

Everything, the controller in the module is ready and working.