Welcome Guest, Not a member yet? Register   Sign In
Display profiler data


Is it possible to get the profiler data without displaying it at the bottom of the page?

I want to show some of the profiler info (execution time, queries used) on my page but in a custom div.

Is it possible?

Well I have not done this myself but just to get you started if you look at the profiler.php in system library the final function is the run command.

It outputs the profile into a div.

$output = "<div id='codeigniter_profiler' style='clear:both;background-color:#fff;padding:10px;'>";

So if you wanted that to display somewhere else on your page just change the css values or do it by #codeigniter_profiler in the css.

Then if you didnt want all profile messages just comment out the ones you didnt want within the run function.

Good Luck!

Theme © iAndrew 2016 - Forum software by © MyBB