Just to amend to this, as it recently just bit me...
I initially put this in my index.php,
<?php if (SF_DEBUG) { ?><SCRIPT LANGUAGE="JavaScript"
TYPE="text/javascript">sfWebDebugToggleMenu();</SCRIPT><?php } ?>
however I just discovered that caused issues with RSS feeds as it was trying to
spit out the whole <SCRIPT..../SCRIPT> block -- thereby corrupting the feed XML.
So then I put it as the last line of the layout.php and that was causing a JS
error as the function gets called BEFORE all that <div id="sfWebDebug"> stuff
is created.
The magic that seems to have worked now in all cases is to put this in
layout.php, which causes the (obvious) delay of the function call till the
entire page has been rendered.
<?php if (SF_DEBUG) { ?><SCRIPT LANGUAGE="JavaScript"
TYPE="text/javascript">window.onload = sfWebDebugToggleMenu;</SCRIPT><?php } ?>
This may seem obvious to some of you, but it sure wasn't to me.
-----Original Message-----
From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of
Kiril Angov
Sent: Wednesday, July 23, 2008 11:50 PM
To: [email protected]
Subject: [symfony-users] Re: start with debug web bar minimized in v1.0.16?
In your layout.php do some logic like:
if SF_ENVIRONMENT == dev
write some javascript to call sfWebDebugToggleMenu() on page load.
endif
On Thu, Jul 24, 2008 at 12:16 AM, Daevid Vincent <[EMAIL PROTECTED]> wrote:
> Is there a setting somewhere to start with the debug web bar minimized to
> the right (as if I clicked the icon)
>
>
>
> It's always in the way, covering my layout and 90% of the time I don't need
> it, but I don't want to turn it off necessarily.
>
>
>
> Using v1.0.16
>
>
>
>
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"symfony users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---