嗨,在我的自定义模块中,我使用 cms_page_save_after 事件通过 cms pages 保存更多数据。而在 oberver 中,我得到了无法处理的此类数据。
Varien_Event_Observer Object
(
[_data:protected] => Array
(
[event] => Varien_Event Object
(
[_observers:protected] => Varien_Event_Observer_Collection Object
(
[_observers:protected] => Array
(
)
)
[_data:protected] => Array
(
[data_object] => Mage_Cms_Model_Page Object
(
[_cacheTag:protected] => cms_page
[_eventPrefix:protected] => cms_page
[_eventObject:protected] => object
[_resourceName:protected] => cms/page
[_resource:protected] =>
[_resourceCollectionName:protected] => cms/page_collection
[_dataSaveAllowed:protected] => 1
[_isObjectNew:protected] =>
[_data:protected] => Array
(
[form_key] => 1TVTYLITcZn3dUZm
[page_id] => 3
[title] => About Us
[identifier] => about-magento-demo-store
[stores] => Array
(
[0] => 1
)
[is_active] => 1
[content_heading] =>
[content] =>
我尝试了 $observer->getData('page_id') 代码,但没有显示任何内容。有谁知道如何使用这个对象。提前致谢。