Advertisement
Guest User

SilverStripe Setting Menu Title

a guest
Nov 20th, 2015
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. class UpgradeNotificationPage extends LeftAndMain {
  2.  
  3. static $url_segment = "upgrade";
  4. static $menu_title;
  5. static $menu_icon;
  6. static $menu_priority = 1000;
  7. static $allowed_actions = array ('upgrade', 'refresh');
  8.  
  9. public function init() {
  10. self::$menu_title = 'foo'; //why doesn't this work?
  11. self::$menu_icon = 'bar'; //why doesn't this work?
  12. parent::init();
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement