Skip to content

Instantly share code, notes, and snippets.

@punkstar
Created December 29, 2012 15:44
Show Gist options
  • Save punkstar/4407677 to your computer and use it in GitHub Desktop.
Save punkstar/4407677 to your computer and use it in GitHub Desktop.
Custom Magento admin notifications
<?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>
@maderlock
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment