This is the content of my custom module, config.xml file:
<adminhtml>
<layout>
<updates>
<mymodule>
<file>homepage.xml</file>
</mymodule>
</updates>
</layout>
</adminhtml>
this is the content of the layout/homepage.xml file from
<?xml version="1.0"?>
<layout>
<adminhtml_manage_index>
<reference name="content">
<block type="mynamespace_mymodule/adminhtml_banner" name="mynamespace_mymodule_banner" />
</reference>
</adminhtml_manage_index>
</layout>
This is the content of my controller Mynamespace/Mymodule/controllers/Adminhtml/ManageController.php
class Mynamespace_Mymodule_Adminhtml_ManageController extends Mage_Adminhtml_Controller_Action
{
public function indexAction()
{
$this->loadLayout();
$this->_initAction()->renderLayout();
}
}
and the content of the Mynamespace/Mymodule/Block/Adminhtml/Banner.php
class Mynamespace_Mymodule_Block_Adminhtml_Banner extends Mage_Adminhtml_Block_Widget_Grid_Container
{
public function __construct()
{
echo 1; exit();
//....
}
}
My problem is that it doesn't access the block. I put an exit() there . But I cannot get there. Why ? What am I missing ? thx