Skip to content

Instantly share code, notes, and snippets.

@punkstar
Created December 29, 2012 15:44
Show Gist options
  • Select an option

  • Save punkstar/4407673 to your computer and use it in GitHub Desktop.

Select an option

Save punkstar/4407673 to your computer and use it in GitHub Desktop.
Custom Magento admin notifications
<?php
class Meanbee_Notify_Model_Feed extends Mage_AdminNotification_Model_Feed {
public function getFeedUrl() {
$url =
Mage::getStoreConfigFlag(self::XML_USE_HTTPS_PATH) ? 'https://' : 'http://'
. 'www.meanbee.com/path/to/your/file.rss';
}
public function observe() {
$model = Mage::getModel('notify/feed');
$model->checkUpdate();
}
}
@sanbornm
Copy link
Copy Markdown

You forgot the return on the getFeedUrl() method.

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