I'm following the answer to stackoverflow question 576908 but I seem to be getting a 404 Error. Does anyone know what I'm doing wrong. i.e. beginner mistakes?
IndexController:
<?php
class MyCompanyName_HelloWorld_IndexController extends Mage_Core_Controller_Front_Action{
public function indexAction(){
echo "We're echoing just to show that this is what's called, normally you'd have some kind of redirect going on here";
}
}
Config.xml:
<?xml version="1.0"?>
<config>
<modules>
<mycompanyname_helloworld>
<version>
0.1.0
</version>
</mycompanyname_helloworld>
</modules>
<frontend>
<routers>
<!-- the <helloworld> tagname appears to be arbitrary, but by
convention is should match the frontName tag below-->
<helloworld>
<use>standard</use>
<args>
<module>MyCompanyName_HelloWorld</module>
<frontName>helloworld</frontName>
</args>
</helloworld>
</routers>
</frontend>
</config>
In app/etc/modules:
<?xml version="1.0"?>
<config>
<modules>
<MyCompanyName_Helloworld>
<active>true</active>
<codePool>community</codePool>
</MyCompanyName_Helloworld>
</modules>
</config>
I keep geeting a
404 Error
when I hit the url
magento.dev/index.php/helloworld
//NB The url is a virtualhost on my development machine.
I'm running magento 1.8