I have a custom module inside my local code pool and folder structure for the same is as below:
app
code
local
namespace
module
controllers
etc
etc
modules
namespace_module.xml
namespace_module.xml:
<config>
<modules>
<Namespace_Module>
<active>true</active>
<codePool>local</codePool>
<version>0.0.1</version>
</Namespace_Module>
</modules>
</config>
namespace/module/etc/config.xml
<?xml version="1.0"?>
<config>
<modules>
<Namespace_Module>
<version>1.0.0</version>
</Namespace_Module>
</modules>
<frontend>
<routers>
<module>
<use>standard</use>
<args>
<module>Namespace_Module</module>
<frontName>module</frontName>
</args>
</module>
</routers>
</frontend>
</config>
controllers/UploadController.php
<?php
class Namespace_Module_UploadController extends Mage_Core_Controller_Front_Action{
public function indexAction(){
echo "Hi Buddy.."; die();
}
}
If I run the url as below,
http://myhost/project/module/upload
it access the indexAction()
But if I dont mention the controller name, it should access indexAction of the uploadCOntroller, How can I do this? I mean if I run below url
it should access uploadcontroller/index action/
indexAction
is redirect automatically ?