![]() |
ob_end_clean() call in show_error() function - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5) +--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24) +--- Thread: ob_end_clean() call in show_error() function (/showthread.php?tid=68164) |
ob_end_clean() call in show_error() function - vincent78 - 06-03-2017 Hello everyone, In my code, I use the show_error() CodeIgniter function but the output buffer is not empty because previously, I've loaded a view with the third parameter set to true. The result page is weird because in the beginning, I have what was in the buffer and then I have what displays the show_error() function. I think it would be better to call the ob_end_clean() function at the beginning of the show_error() function (probably better in the Exceptions.php file than in the Common.php file). Have a good day ! Vincent |