BUG Ticket (closed)

[PATCH][TEST] Can't load custom panel from plugin

###What happened: In ToolbarComponent::_loadPanels it calls App::import('Vendor', $className) to load the panels. If you set the className using the format 'Plugin.panel' the App::import runs fine, but the creation of the class fails ($panelObj =& new $className($settings);). If you set the $className without prefixing the plugin name, then App::import won't find it and you the get the "Could not load DebugToolbar panel..." error. Patch is here: http://thechaw.com/forks/mcurry/debug_kit/commits/view/eaacbca0c200a47d3e9aef351c2059c43ec32a28 Patch for test case: http://thechaw.com/forks/mcurry/debug_kit/commits/view/920a211ba9887a778aed85c96fbea10ae0b88612
on 06.03.09 reported by: mcurry owned by: mark_story
on 06.03.09 by mcurry
  • title was changed to [PATCH][TEST] Can't load custom panel from plugin
  • description was changed
(fixed) on 06.03.09 by mark_story
  • owner was changed to mark_story
  • status was changed to closed
  • resolution was changed to fixed
Thanks for the patch and test case Matt, merged in.