我有一个模块可以像下面这样设置订单历史记录块:
<adminhtml_sales_order_view>
<reference name="order_tab_info">
<block type="adminhtml/sales_order_view_history" name="order_history" template="sales/order/view/history.phtml"></block>
</reference>
</adminhtml_sales_order_view>
但是我正在编写一个新模块,希望使用其他的history.phtml文件。在模块的layout.xml中,我写了:
<adminhtml_sales_order_view>
<reference name="order_history">
<action method="setTemplate">
<template>mymodule/sales/order/view/history.phtml</template>
</action>
</reference>
</adminhtml_sales_order_view>
但不幸的是,这仍然对我不起作用。请告诉我我要去哪里错了?
我试图使我的模块依赖于app / etc / modules中的另一个模块,但这对我来说也不是固定的。
我没有将我的layout.xml添加到我的config.xml中。
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句