Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with toolbar when catchAll is set #42

Closed
RomeroMsk opened this issue Aug 12, 2015 · 2 comments
Closed

Problem with toolbar when catchAll is set #42

RomeroMsk opened this issue Aug 12, 2015 · 2 comments
Assignees
Labels
type:enhancement Enhancement
Milestone

Comments

@RomeroMsk
Copy link

When yii\web\Application::$catchAll is set, debug toolbar will be rendered as "maintenance" page, so you will see content of that page rendered twice.
I suggest to disable debug toolbar when this application property is set.

@steve-obrien
Copy link

Yes having this issue too. CatchAll is useful for application installation screens.
Perhaps adding a simple return if we are in a catchAll state to the Debug Module's bootstrap function.
This feels like something the debug module should be aware of as it will not work in a catchAll state, and it took a while to figure out why I had two pages showing.

if (Yii::$app->catchAll !== false) {
    return;
}

@SilverFire
Copy link
Member

Resoled by documentation notice

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:enhancement Enhancement
Projects
None yet
Development

No branches or pull requests

4 participants