Welcome Guest, Not a member yet? Register   Sign In
Monitoring Database Queries in the Profiler (or something)
#4

[eluser]smilie[/eluser]
Well, depending on your concept - this is doable.

Most of my applications have 'master' index file, which includes other views (header / footer etc.).

So, when starting profiler, this happens:

Code:
$tmp_data['menu'] = $this->load->view('common/menu_index',$data,TRUE);
$tmp_data['header'] = $this->load->view('common/header','',TRUE);
$tmp_data['content'] = $this->load->view('content/linux_vps','',TRUE);
$tmp_data['links'] = $this->load->view('common/footer_links','',TRUE);
$tmp_data['footer'] = $this->load->view('common/footer','',TRUE);
$this->load->view('home',$tmp_data);
$this->output->enable_profiler(TRUE);

Not sure, but I do believe that profiler goes through all included pages and present is on the screen. This way I can decide on a page level where I want to see profiler.

You could probably build in check in session if admin is logged in and display profiler.

Regards,
Smilie


Messages In This Thread
Monitoring Database Queries in the Profiler (or something) - by El Forum - 09-08-2010, 09:31 AM



Theme © iAndrew 2016 - Forum software by © MyBB