This is my xml code:
<admin>
<routers>
<adminhtml>
<args>
<modules>
<mymodule before="Mage_Adminhtml">Mynamespace_Mymodule_Adminhtml</mymodule>
</modules>
</args>
</adminhtml>
</routers>
</admin>
<adminhtml>
<layout>
<updates>
<mymodule>
<file>mymodule.xml</file>
</mymodule>
</updates>
</layout>
</adminhtml>
This is my controller:
class Mynamespace_Mymodule_Adminhtml_ShipmentController extends Mage_Adminhtml_Controller_Action
{
public function indexAction()
{
echo '1';
exit();
$this->loadLayout();
$this->renderLayout();
}
}
This is my layout:
<?xml version="1.0"?>
<layout version="0.1.0">
<adminhtml_mymodule_shipment_index>
<reference name="content">
<block type="mymodule/shipment" template="mymodule/shipment.phtml" name="mymodule_shipment">
</block>
</reference>
</adminhtml_mymodule_shipment_index>
</layout>
Can you please tell me why I don't get the echo '1' exit?
Also when I access this url
<a href="<?php echo Mage::helper("adminhtml")->getUrl("mymodule/shipment/index/order_id/".$_order->getId()) ;?>">myurl</a>
I get a 404 error