Welcome Guest, Not a member yet? Register   Sign In
ob_end_clean() call in show_error() function
#1

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
Reply




Theme © iAndrew 2016 - Forum software by © MyBB