CI_Profiler::run PHP Method

run() public method

Run the Profiler
public run ( ) : string
return string
    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);
    }

Usage Example

Esempio n. 1
0
 public function run()
 {
     $output = parent::run();
     file_put_contents('/home/mohammad/profiler.html', $output);
 }
All Usage Examples Of CI_Profiler::run