Christopher Ambler Posted June 7, 2011 at 12:55 AM Share Posted June 7, 2011 at 12:55 AM In upgrading (on our dev environment, of course!) from 2.2 to 2.3, I find the following code had to be changed in my "everywhere" model: $Menu = RegisterClass::getInstance('MenuModel'); $menu_id = $Menu->getComponentMenuId($this->extension); became... $Menu = ClassRegistry::getClass('MenuModel'); $menu_id = $Menu->getComponentMenuId($this->extension); I found this when the old code blew chunks and then I just looked at one of the new everywhere models to see how it was done. It seems to be working fine now - anything else changed that I might want to know about? Link to comment
Alejandro Posted June 7, 2011 at 01:20 AM Share Posted June 7, 2011 at 01:20 AM This section is only visible with a valid subscription. If you have a valid subscription, please login. Link to comment
Christopher Ambler Posted June 7, 2011 at 01:24 AM Author Share Posted June 7, 2011 at 01:24 AM This section is only visible with a valid subscription. If you have a valid subscription, please login. Link to comment
Alejandro Posted June 7, 2011 at 01:36 AM Share Posted June 7, 2011 at 01:36 AM This section is only visible with a valid subscription. If you have a valid subscription, please login. Link to comment
Christopher Ambler Posted June 7, 2011 at 02:34 AM Author Share Posted June 7, 2011 at 02:34 AM This section is only visible with a valid subscription. If you have a valid subscription, please login. Link to comment
Recommended Posts