I have created the custom admin module, it showing empty page.
my code is:
//config.xml file
<admin>
<routers>
<web>
<use>admin</use>
<args>
<module>Department_Web</module>
<frontName>web</frontName>
</args>
</web>
</routers>
</admin>
<adminhtml>
<layout>
<updates>
<web>
<file>web.xml</file>
</web>
</updates>
</layout>
</adminhtml>
<stores>
<admin>
<design>
<package>
<name>default</name>
</package>
<theme>
<default>Department</default>
</theme>
</design>
</admin>
</stores>
//adminhtml.xml file
<?xml version="1.0"?>
<config>
<menu>
<web module="web" translate="label">
<title>Web</title>
<sort_order>71</sort_order>
<children>
<dotnet module="web" translate="label">
<title>Dot Net</title>
<sort_order>0</sort_order>
<action>web/adminhtml_index</action>
</dotnet>
<php module="web" translate="label">
<title>PHP</title>
<sort_order>1</sort_order>
<action>web/adminhtml_index</action>
</php>
</children>
</web>
</menu>
<acl>
<resources>
<all>
<title>Allow Everything</title>
</all>
<admin>
<children>
<Department_Web>
<title>Web Module</title>
<sort_order>10</sort_order>
</Department_Web>
</children>
</admin>
</resources>
</acl>
</config>
//controller file
<?php
class Department_Web_Adminhtml_IndexController extends Mage_Adminhtml_Controller_Action
{
protected function _initAction()
{
$this->loadLayout()->_setActiveMenu('web/set_time')->_addBreadcrumb('Web Manager','Web Manager');
return $this;
}
public function indexAction()
{
Mage::log('c2');
$this->_initAction();
$this->renderLayout();
}
}
//layout file adminhtml->defalt->Department->layout
<?xml version="1.0"?>
<layout version="0.1.0">
<web_adminhtml_index_index>
<reference name="content">
<block type="web/adminhtml_grid" name="adminhtml_web"></block>
</reference>
</web_adminhtml_index_index>
</layout>
looking for solution?
Thanks in advance.