Welcome Guest, Not a member yet? Register   Sign In
How to detail all queries executed to render a page ?
#1

[eluser]sikko[/eluser]
Hi all,

In cakePHP you can see all the queries ran for a page to be rendered (because all queries aren't fully written thanks to active record).
Is that possible to make it with codeigniter ?

Thank you.
#2

[eluser]Bas Vermeulen[/eluser]
Hi sikko,

Put the following in one of your views:

Code:
print_r($this->db->queries);

Is this what you mean?
#3

[eluser]smilie[/eluser]
http://ellislab.com/codeigniter/user-gui...iling.html

There you go Smile

Cheers,
Smilie
#4

[eluser]CroNiX[/eluser]
Yep, just put $this->output->enable_profiler(TRUE); in your controller constructor.
#5

[eluser]Bas Vermeulen[/eluser]
Oh yeah, that's a nice and better option Tongue
#6

[eluser]sikko[/eluser]
Thank you Smile that's what I wanted




Theme © iAndrew 2016 - Forum software by © MyBB