如何从 Observer 获取已删除类别的 id?
config.xml 标记
<adminhtml>
<events>
<catalog_category_delete_after>
<observers>
<my_module>
<type>singleton</type>
<class>my_module/observer</class>
<method>onCategoryDeleteAfter</method>
</my_module>
</observers>
</catalog_category_delete_after>
</events>
</adminhtml>
观察者代码类似于:
class My_Module_Model_Observer
{
public function onCategoryDeleteAfter() {
#do something with deleted category id
}
}