JCSama / CodeIgniter-develbar

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

Closed Den4X closed 7 years ago

Den4X commented 7 years ago

$output = $this->CI->output->get_output(); //null; $output = preg_replace('|(.*?)<\/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;

JCSama commented 7 years ago

Hello @Den4X, What do you mean by default templator ?