Created
December 29, 2012 15:44
-
-
Save punkstar/4407677 to your computer and use it in GitHub Desktop.
Custom Magento admin notifications
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<config> | |
... | |
<adminhtml> | |
... | |
<events> | |
<controller_action_predispatch> | |
<observers> | |
<meanbee_notification> | |
<type>singleton</type> | |
<class>notify/feed</class> | |
<method>observe</method> | |
</meanbee_notification> | |
</observers> | |
</controller_action_predispatch> | |
</events> | |
... | |
</adminhtml> | |
... | |
</config> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Would it not be better to listen to a more specific event e.g. controller_action_predispatch_admin_dashboard_index? Listening to every action is going to fire off a lot of calls to your feed.