CodeIgniter Developer Toolbar is a third party library based on Profiler Library with additional functionality for debugging and optimisation, Database, Models, Helpers, Libraries, Views, Ajax...
MIT License
176
stars
57
forks
source link
Ajax requests can't work if not default templator used #17
(.*?)<\/head>|is', ''.$js.'$1', $output, 1, $count); //so not work
very force hack, but work fine )
$develBarOutput = $this->develbar_output();
// Patch for Pace.js or similar
if (true == $this->default_options['develbar_sections']['Ajax']) {
$js = $this->CI->load->file($this->assets_folder.'js/ajax.js', true);
$js = '';
$develBarOutput .= $js;
}
$this->CI->output->_display($develBarOutput);
return;
$output = $this->CI->output->get_output(); //null; $output = preg_replace('|
(.*?)<\/head>|is', ''.$js.'$1', $output, 1, $count); //so not workvery force hack, but work fine ) $develBarOutput = $this->develbar_output(); // Patch for Pace.js or similar if (true == $this->default_options['develbar_sections']['Ajax']) { $js = $this->CI->load->file($this->assets_folder.'js/ajax.js', true); $js = ''; $develBarOutput .= $js; } $this->CI->output->_display($develBarOutput); return;