Welcome Guest, Not a member yet? Register   Sign In
Debug inserting a <script> element into my view file
#1

The following alien element appears in my page source file after rendering by the browser. I don't know why.

<script type="text/javascript"  id="debugbar_loader" data-time="1584375481" src="http://localhost:8080/index.php?debugbar"></script><script type="text/javascript"  id="debugbar_dynamic_script"></script><style type="text/css"  id="debugbar_dynamic_style"></style>

I followed the instruction at https://forum.codeigniter.com/thread-74553.html but that only removes the inserted comments at the top and at the bottom. For me the comments have no effect, but this script element has an effect.

Please help.
Reply
#2

That’s the Debug toolbar. It can be disabled completely in the filter config file app/Config/Filters.php, or by specific environnement in app/Config/Boot/*
CodeIgniter 4 tutorials (EN/FR) - https://includebeer.com
/*** NO support in private message - Use the forum! ***/
Reply
#3

(03-16-2020, 09:59 AM)includebeer Wrote: That’s the Debug toolbar. It can be disabled completely in the filter config file app/Config/Filters.php, or by specific environnement in app/Config/Boot/*
I have disabled it in the app/Config/Filters.php.

I have peace now. Thank you so much.

But I am sure I will need to know how useful it is.
Reply




Theme © iAndrew 2016 - Forum software by © MyBB