Created
December 29, 2012 15:44
-
-
Save punkstar/4407673 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
<?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(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You forgot the return on the getFeedUrl() method.