MagentoStudy_News exstension - Can't launch Magento custom extension - 404

179 Views Asked by At

this questions might seem trivial but couldn't find any other resource for the discussion/help on this topic.

I've been developing a custom News component for Magento following "Magento Extension Developers Guide v1.0"

So far I have written the frontend part following the guide.

And now I wish to see the results. As far as I can understand the frontend should be working.

and I know according to config.xml file (this particular piece):

<frontend>
        <routers>
            <gott_news>
                <use>standard</use>
                <args>
                    <module>Gott_News</module>
                    <frontName>news</frontName>
                </args>
            </gott_news>
        </routers>

my component should be accessible through: http://127.0.0.1/magento/news

and far as my controller's name is IndexController.php and there I have indexAction() it should automatically run http://127.0.0.1/magento/news/index/index but instead of it I'm just getting 404 Not Found 1 in the header of the browser and Whoops, our bad... on the page.

Can you explain why the extension isn't working and how to launch Magento's extension? Maybe I have to register this extension somewhere else then in module's magentostudy_news.xml?

2

There are 2 best solutions below

1
Karan Adhikari On
http://127.0.0.1/magento/index.php/news/

and use die in your indexAction()

0
Filippo Yuri Esposto On

I suggest you to try this module that helps you to create new modules http://www.magentocommerce.com/magento-connect/ultimate-module-creator.html

After you have created your module you can investigate and study it.

Filippo