public function run()
{
$this->CI->load->helper('language');
$fields_displayed = 0;
foreach ($this->_available_sections as $section) {
if ($this->_compile_[$section] !== FALSE) {
$func = "_compile_{$section}";
if ($section == 'http_headers') {
$section = 'headers';
}
$this->_sections[$section] = $this->{$func}();
$fields_displayed++;
}
}
return $this->CI->load->view('profiler_template', array('sections' => $this->_sections), true);
}