• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
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


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.