I have created a custom module probably 20 times and it is showing the same 404 error.
I have searched for an issue and eventually found nothing. isn't it because I am using ubuntu.
Please correct me if I am wrong.
This is my app/etc/Kuldeep_HelloWorld.xml
file:
<?xml version="1.0"?>
<config>
<modules>
<Kuldeep_HelloWorld>
<active>true</active>
<codePool>local</codePool>
</Kuldeep_HelloWorld>
</modules>
</config>
This is app/code/local/Kuldeep/HelloWorld/etc/config.xml
<?xml version="1.0"?>
<config>
<modules>
<Kuldeep_HelloWorld>
<version>0.1.0</version>
</Kuldeep_HelloWorld>
</modules>
<frontend>
<routers>
<helloworld>
<use>standard</use>
<args>
<module/>Kuldeep_HelloWorld</module>
<frontName>hey</frontName>
</args>
</helloworld>
</routers>
</frontend>
<admin>
<routers>
<helloworld>
<use>admin</use>
<args>
<module>Kuldeep_HelloWorld</module>
<frontName>admin_helloworld</frontName>
</args>
</helloworld>
</routers>
</admin>
<global>
<helpers>
<helloworld>
<class>Kuldeep_HelloWorld_Helper</class>
</helloworld>
</helpers>
</global>
<adminhtml>
<menu>
<helloworld module="helloworld">
<title>HelloWorld</title>
<sort_order>100</sort_order>
<children>
<helloworld module="helloworld">
<title>Hello World</title>
<sort_order>0</sort_order>
<action>admin_helloworld/adminhtml_index</action>
</helloworld>
</children>
</helloworld>
</menu>
</adminhtml>
</config>
This is controller file:
app/code/local/Kuldeep/HelloWorld/controllers/IndexController.php
<?php
class Kuldeep_HelloWorld_IndexController extends Mage_Core_Controller_Front_Action{
/**
* Index action
*
* @access public
* @return void
*/
public function indexAction() {
echo "it works!";
}
public function doneintagainAction() {
echo "done it again....!!!!";
}
}
?>
app/etc
folder?frontname
is set to'hey'
, so your url would be likeyour-magento.com/hey/index/