Skip to main content
2 of 6
edited tags; edited tags

Can't reach to controller for custom module (Magento 1.9.2.4)

I have created one module in magento 1.9.2.4 and I want to check front end controller is working or not,but get an error 404 Not Found page.

Config.xml (C:\xampp\htdocs\shop\app\code\local\Sevenbits\Demo\etc\config.xml)

<?xml version="1.0"?>
<config>
    <!-- about modules -->
    <modules>
        <Sevenbits_Demo>
            <version>1.0.0</version>
        </Sevenbits_Demo>
    </modules>
    
    
    <!-- Setup  class  path for all things -->
    <global>
        <models>
        <demo>
            <class>Sevenbits_Demo_Model</class>
        </demo>
        </models>
    
        <blocks>
        <demo>
            <class>Sevenbits_Demo_Block</class>
        </demo>
        </blocks>
        
        <helpers>
        <demo>
            <class>Sevenbits_Demo_Helper</class>
        </demo>
        </helpers>
    </global>
    
    <!-- For Frontend Controller-->
    
    <frontend>
        <routers>
            <demo>
                <use>standard</use>
                <args>
                    <frontName>Test</frontName>
                    <module>Sevenbits_Demo</module>
                </args>
            </demo>
        <routers>
    </frontend>
    
</config>

IndexController.php (C:\xampp\htdocs\shop\app\code\local\Sevenbits\Demo\controllers\IndexController.php)

<?php


class Sevenbit_Demo_IndexController extends Mage_Core_Controller_Front_Action
{

    public function indexAction()
    {

            echo "Hello World";
    }


}

Sevebits_Demo.xml (C:\xampp\htdocs\shop\app\etc\modules\Sevenbits_Demo.xml)

<?xml version="1.0"?>
<config>
    <modules>
        <Sevenbits_Demo>
            <active>true</active>
            <codePool>local</codePool>
        </Sevenbits_Demo>
    </modules>
</config>