I am creating a custom extension with Magento 1.9.0.1 but got stuck in admin controller as my admin controller throws 404 page not found error. Any help would be appreciated. Below is my code : config.xml
app/code/local/Codifiedweb/SurveySource/etc/config.xml
<?xml version="1.0"?>
<config>
<modules>
<Codifiedweb_SurveySource>
<version>1.0.0</version>
</Codifiedweb_SurveySource>
</modules>
<admin>
<routers>
<surveysource>
<use>standard</use>
<args>
<modules>
<codifiedweb_surveysource before="Mage_Adminhtml">Codifiedweb_SurveySource_Adminhtml</codifiedweb_surveysource>
</modules>
</args>
</surveysource>
</routers>
</admin>
<global>
<blocks>
<surveysource>
<class>Codifiedweb_SurveySource_Block</class>
</surveysource>
<adminhtml>
<rewrite> <sales_order_grid>Codifiedweb_SurveySource_Block_Adminhtml_Sales_Order_Grid</sales_order_grid>
</rewrite>
</adminhtml>
</blocks>
<helpers>
<surveysource>
<class>Codifiedweb_SurveySource_Helper</class>
</surveysource>
</helpers>
<models>
<surveysource>
<class>Codifiedweb_SurveySource_Model</class>
</surveysource>
</models>
</global>
</config>
adminhtml.xml
app/code/local/Codifiedweb/SurveySource/etc/adminhtml.xml
I am creating submenu under CMS
<?xml version="1.0"?>
<config>
<menu>
<cms>
<children>
<surveysourcebackend module="surveysource">
<title>Survey Statics</title>
<sort_order>100</sort_order>
<action>adminhtml/surveysource</action>
</surveysourcebackend>
</children>
</cms>
</menu>
</config>
Controller
SurveySourceController.php
app/code/local/Codifiedweb/SurveySource/controllers/Adminhtml
<?php
class CodifiedWeb_SurveySource_Adminhtml_SurveySourceController extends Mage_Adminhtml_Controller_Action
{
public function indexAction()
{
// $this->loadLayout();
//$this->_title($this->__("Survey Statics"));
//$this->renderLayout();
echo "Iam in admin controller";
exit;
}
}
Where I am doing mistake?
Thanks