Magentoadminpanelの私のモジュールにはhttp: //example.com/index.php/mymodule/ ...のようなURLがあり、注文を含むカスタムグリッドが含まれています。ユーザーがグリッド行をクリックしたときに、標準の「注文ビュー」ページにリダイレクトしたいと思います。
public function getRowUrl($row)
{
if (Mage::getSingleton('admin/session')->isAllowed('sales/order/actions/view')) {
return $this->getUrl('sales_order/view', array('order_id' => $row->getId()));
}
return false;
}
しかし、このURLはhttp://example.com/index.php/ admin / sales_order / view/ ...ではなくhttp: //example.com/index.php/sales_order/view/...を指しています。何か提案はありますか?
UPD。config.xml:
<admin>
<routers>
<mymodule>
<use>admin</use>
<args>
<module>Foo_Mymodule</module>
<frontName>mymodule</frontName>
</args>
</mymodule>
</routers>
</admin>