Debug Toolbar above of the head tag |
I've just try using CI 4 and working on development mode, but I found the debug toolbar script above of the head tag not inside the head:
Code: <!-- DEBUG-VIEW START 1 APPPATH/Config/../Views/templates/header.php --> The debug toolbar did not injected properly into the head block tag and blocked by browser. vendor/codeigniter4/framework/system/Debug/Toolbar.php PHP Code: if (strpos($response->getBody(), '<head>') !== false) How to corrected this? Thank you.
Hi, this bug have been reported on GitHub with a suggested solution:
https://github.com/codeigniter4/CodeIgni...ssues/2545 PHP Code: if (strpos($response->getBody(), '<head>') !== false) (02-16-2020, 05:17 AM)jreklund Wrote: Hi, this bug have been reported on GitHub with a suggested solution: Thank you very much for the reference. Actually I've try to tricky with add <head> before <script> tag and remove after $script variable. But your reference more make sense. ![]() ` PHP Code: $script = '<head>' . PHP_EOL |
Welcome Guest, Not a member yet? Register Sign In |