lundi 29 juin 2015

Controller 404 Page Not Found using Magento

I created this files... based on TutsPlus Premium Magento Tutorial I am using the latest Magento right now.

file path

\app\code\local\TutsPlus\Demo\etc

this is the codes... for config.xml

<config>
    <global>
        <models>
            <demo>
                <class>TutsPlus_Demo_Model</class>
            </demo>
        </models>

        <blocks>
            <demo>
                <class>TutsPlus_Demo_Block</class>
            </demo>
        </blocks>

        <helpers>
            <demo>
                <class>TutsPlus_Demo_Helper</class>
            </demo>
        </helpers>

    </global>

    <frontend>
        <routers>
            <tutsplus_demo>
                <use>standard</use>
                <args>
                    <module>TutsPlus_Demo</module>
                    <frontName>demo</frontName>
                </args>
            </tutsplus_demo>
        </routers>
    </frontend>

</config>


app\code\local\TutsPlus\Demo\controllers

this is the codes... for IndexController.xml

<?php

class TutsPlus_Demo_IndexController extends Mage_Core_Controller_Front_Action {

    public function sayHelloAction() {
        echo "Hello Junar";
    }

}

The Output must be: Hello Junar but it gives me 404 Page Not Found

Aucun commentaire:

Enregistrer un commentaire