-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Exception or disable toolbar for specific URI #195
Comments
I won't have a chance to really look at it until later tonight, but I believe you need the value of 'except' to be an array:
I should probably have that attempt to do an auto-conversion to array if a string is found, though, since I can see that being a common error point. |
Still getting an error. Example in this case: I have a controller to send output as JavaScript's content (to minify it on the fly).
The problem is when debug bar activate, the output included debug bar.
I think the exception of toolbar is very useful to avoid collisions with other template. |
Should be working now, but let me know if you still run into problems. |
Haha.. Its working now! Thank you. :) |
Ooops!
The toolbar is still shown when I accessed the only controller of URI (without method, second of URI segment), like this:
It's ok (toolbar is hidden):
What do you think? Thanks. :) |
Is it possible that this issue is back?
Still getting: |
Use $global filter, instead of $required. |
It seems very counterintuitive to move 'toolbar' from the new $required to $globals. I think it would be good to specify this in the documentation if 'except' is not supported for the required filters. |
Read https://codeigniter4.github.io/CodeIgniter4/incoming/filters.html#required See the PHPDoc CodeIgniter4/app/Config/Filters.php Lines 50 to 62 in 53bfdef
|
I have tried 'filter' and used 'except' key for URI, but not working.
And I gotten an error:
Is there any suggestion?
I think that is only for development mode.
The text was updated successfully, but these errors were encountered: