Welcome Guest, Not a member yet? Register   Sign In
display passed data from controller to view in profiler
#1

[eluser]od3n[/eluser]
i want to display my passed data from controller to view in profiler. how can i achive that?
#2

[eluser]satej[/eluser]
you can use print_r(get_defined_vars());
#3

[eluser]sv3tli0[/eluser]
Just print it from your controller before loading your view ?
#4

[eluser]stuartr[/eluser]
I use the following code in the controller, to load the profilers after the rest of the view has been loaded.

Code:
if($this->config->item('show_profiler'))
       $this->output->enable_profiler(TRUE, get_defined_vars());
#5

[eluser]od3n[/eluser]
[quote author="stuartr" date="1374768229"]I use the following code in the controller, to load the profilers after the rest of the view has been loaded.

Code:
if($this->config->item('show_profiler'))
       $this->output->enable_profiler(TRUE, get_defined_vars());
[/quote]

how to call it from my extended MY_Profiler?




Theme © iAndrew 2016 - Forum software by © MyBB