Jump to content

2.2 to 2.3 changes


Christopher Ambler

Recommended Posts

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
×
×
  • Create New...