Removing the Class around the IndexAction causes a server error, so I know the code is running as expected up to that point.
class Foo_Bar_IndexController extends Mage_Core_Controller_Front_Action{
public function indexAction(){
echo "<h1>Echo from indexcontroller.</h1>";
}
}
Ideally the echo would be replaced by loading template files, but I've been stuck on it 404ing for the last 2 days and just want to get past that.
I've read through about a dozen tutorial, followed 4 to completetion, but this issue pops up every time. Does anyone have an idea what could be causing this?
Edit-- Sorry, for the brevity. I wasn't sure how much I should distend the page.
@ Alan Storm -- I found your tutorial here. http://alanstorm.com/magento_controller_hello_world (Great Detail, very helpful in understanding what all the xml tags do). This is a copy of that tutorial with Foo replacing Alanstormdotcom and Bar replacing Helloworld. Even copy/pasting I end up with the same 404.
Here is my current config file: PATH: app/code/local/Foo/Bar/etc/config.xml (edit: corrected path)
<config>
<modules>
<Foo_Bar>
<version>0.1.0</version>
</Foo_Bar>
</modules>
<frontend>
<routers>
<bar>
<use>standard</use>
<args>
<module>Foo_Bar</module>
<frontName>bar</frontName>
</args>
</bar>
</routers>
</frontend>
</config>
Edit--- the last remaining file Path: app/etc/modules/Foo_Bar.xml
<config>
<modules>
<Foo_Bar>
<active>true</active>
<codePool>local</codePool>
</Foo_Bar>
</modules>
</config>