I followed this tutorial: blog.baobaz.com/en/blog/magento-module-create-your-own-controller but it doesn't work for me. My files:
/app/etc/modules/Baobaz_Arithmetic.xml
<?xml version="1.0" ?>
<config>
<modules>
<Baobaz_Arithmetic>
<active>true</active>
<codePool>local</codePool>
</Baobaz_Arithmetic>
</modules>
</config>
/app/code/local/Baobaz/Arithmetic/etc/config.xml file:
<?xml version="1.0" ?>
<config>
<modules>
<Baobaz_Arithmetic>
<version>0.1.0</version>
</Baobaz_Arithmetic>
</modules>
<frontend>
<routers>
<arithmetic>
<use>standard</use>
<args>
<module>Baobaz_Arithmetic</module>
<frontName>arithmetic</frontName>
</args>
</arithmetic>
</routers>
</frontend>
</config>
/app/code/local/Baobaz/Arithmetic/controllers/IntegerController.php
<?php
class Baobaz_Arithmetic_IntegerController extends Mage_Core_Controller_Front_Action {
public function multiplyAction(){
echo "Respect my authoritah";
}
}
?>
I cleared the cache. When calling (...).com/arithmetic/integer/multiply I get 404 page. I run Magento 1.8.1.
How to fix this?
<?phptag in your controller class as programmer_rkt said above.www.domain.com/index.php/arithmetic/integer/multiplymodule/controller/action. Also it worked for me without thedepart because I don't have the store codes in url setting enabled. Maybe it didn't work for you and you need to addindex.phpbecause you don't have themod_rewritemodule enabled on your server.