CodeIgniter Forums
Debug inserting a <script> element into my view file - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: CodeIgniter 4 (https://forum.codeigniter.com/forum-28.html)
+--- Forum: CodeIgniter 4 Support (https://forum.codeigniter.com/forum-30.html)
+--- Thread: Debug inserting a <script> element into my view file (/thread-75778.html)



Debug inserting a <script> element into my view file - owino - 03-16-2020

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.


RE: Debug inserting a <script> element into my view file - includebeer - 03-16-2020

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/*


RE: Debug inserting a <script> element into my view file - owino - 03-17-2020

(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.