hi - i think I may have found a bug in overriding the db panel in the
web debug toolbar. I've been following
http://www.symfony-project.org/blog/2008/08/27/new-in-symfony-1-2-customize-the-web-debug-toolbar
and have created a new class, ctWebDebugPanelPropel. I want this to
replace the db panel that is already there.

public function configureWebDebugToolbar(sfEvent $event)
{
    $webDebugToolbar = $event->getSubject();
    $webDebugToolbar->setPanel('db', new ctWebDebugPanelPropel
($webDebugToolbar));
}

This doesn't override the panel, but keeps the original. However, if i
change the name to 'newdb' from 'db' it adds another panel with my
mods. In contrast, if i change the name to 'logs' this *does*
overwrite the logs panel and replaces it with my new panel.

Looks like the 'db' panel is added after the initial configuration,
overwriting the one that is there. Not a massive issue as I can use
the 'newdb' name to add extra panel and have 2 db panels, but it would
be nice if I could replace the existing one somehow.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"symfony developers" group.
To post to this group, send email to symfony-devs@googlegroups.com
To unsubscribe from this group, send email to 
symfony-devs+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-devs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to