tan5en5 / codeigniter-debugbar Goto Github PK
View Code? Open in Web Editor NEWCodeIgniter Debug Bar using PHP Debug Bar
License: MIT License
CodeIgniter Debug Bar using PHP Debug Bar
License: MIT License
The CI specific profiler stuff appears on the page but not on the bar. Can you provide an example of where I should set everything up at?
Thanks
Subj..
When this panel is turned on - AJAX does not work (AJAX-alert don't show ((( )
I have following the instruction and able to run this without any problem. This is what I get:
Everything works normally until I tried to alter the config file for server render load performance. This is what I changed on config/profile.php
:
$config['display_assets'] = FALSE;
$config['display_javascript'] = TRUE;
Then I added these lines on view file:
<link rel="stylesheet" href="/assets/style.css" type="text/css">
<script type="text/javascript" src="/assets/script.js"></script>
These are rendered files produced by CI_Profiler::css_assets()
and CI_Profiler::js_assets()
. For verify, you can check these: script.js.txt and style.css.txt (I had to rename these extension file to able to upload these).
This is the result: it shows nothing. The html is rendered, thought.
I tried to add these line onto <head>
... </head>
and the result is same.
<script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/jquery/2.2.0/jquery.min.js"></script>
<script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.1.0/highlight.min.js"></script>
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.1.0/styles/github.min.css">
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/font-awesome/4.5.0/css/font-awesome.min.css">
I don't think I have to add these since $config['include_vendors']
is identical with previous one (TRUE
) as these file rendered.
Something is definitely wrong here. Instead linking to external resource, I tried to put HTML snippet identically (as written on Profile.php
) on view files:
<!-- <link rel="stylesheet" href="/assets/style.css" type="text/css">
<script type="text/javascript" src="/assets/script.js"></script> -->
<?php
echo '<style type="text/css">'."\n";
echo CI_Profiler::css_assets();
echo '</style>'."\n";
echo '<script type="text/javascript">'."\n";
echo CI_Profiler::js_assets();
echo '</script>'."\n";
// echo CI_Profiler::inline_script();
?>
It went blank.
The bar and container is showing, but its content on every tabs is blank. The icons button doesn't work too.
HTML rendered as expected and no error to be found.
A really long html lines (up to 2924 lines).
I changed to these:
$config['display_assets'] = FALSE;
$config['display_javascript'] = FALSE;
and these on view file:
echo '<style type="text/css">'."\n";
echo CI_Profiler::css_assets();
echo '</style>'."\n";
echo '<script type="text/javascript">'."\n";
echo CI_Profiler::js_assets();
echo '</script>'."\n";
echo CI_Profiler::inline_script();
It did show bar as Attempt 2, but worse:
Please help!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.