Poll: Is this possible?
You do not have permission to vote in this poll.
Yeah!
100.00%
1 100.00%
Hell no!
0%
0 0%
Total 1 vote(s) 100%
* You voted for this item. [Show Results]

  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Return profiler as an array?

#1
Hi guys! It's me again.

I like the Profiler. It gives me the information I need like benchmarks, queries, etc.
But honestly, I don't like how it shows up in my website. Well, at least for me.

So, I came up with this idea of returning an array from the Profiler. So I can create a view file named profiler_stats.php then load the profiler arrays "automatically" ( without passing it in the 2nd param in $this->load->view() ).

Or maybe some pseudovariables:
PHP Code:
Like this:
{
time_elapsed}
{
memory_usage

For Profiler:
PHP Code:
{profiler_benchmarks}
{
profiler_query}
{
profiler_get_request}
{
profiler_post_request}

... 


Maybe I can do this using hooks, but HOW? Is it possible?

Thanks for the help.
Reply

#2
You can extend the class an do whatever you want with it check out
all the _compile methods.

MY_Profiler extends CI_Profiler{}
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.