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

Separate DebugToolbar from CI_DEBUG #707

Closed
daylightstudio opened this issue Sep 6, 2017 · 2 comments
Closed

Separate DebugToolbar from CI_DEBUG #707

daylightstudio opened this issue Sep 6, 2017 · 2 comments

Comments

@daylightstudio
Copy link
Contributor

I keep running into scenarios where I'd like CI_DEBUG mode to be on but I don't want the DebugToolbar to render because it adds additional code to the response that I don't want (and can mess up AJAX responses that return HTML). Would you accept a PR for a separate constant (e.g. CI_DEBUG_TOOLBAR) to display the DebugToolbar?

@lonnieezell
Copy link
Member

No need. Comment the toolbar out in application/Config/Filters.php:

public $globals = [
		'before' => [
			// 'csrf'
		],
		'after'  => [
			// 'toolbar'
		]
	];

@daylightstudio
Copy link
Contributor Author

Thanks.

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

No branches or pull requests

2 participants