0

I am developing a website in codeigniter. While I am trying to access controller function it gives white space screen rather than error specific. I have tried to put error_reporting(e_all) in my function name but no luck.

Below is my controller function

function update_something($post)
{
    error_reporting(e_all);
}

How to enable error in CI?

mkrieger1
  • 19,194
  • 5
  • 54
  • 65
akgola
  • 225
  • 2
  • 16
  • 1
    I would checkout the answer on [this post](https://stackoverflow.com/questions/1053424/how-do-i-get-php-errors-to-display) hopefully that will point you in the right direction – mic Nov 03 '17 at 10:12
  • [Error reporting is on by default in CI3.](http://www.codeigniter.com/user_guide/general/errors.html) See index.php in your root directory for details. Sounds like `update_something()` isn't getting called? Maybe put a `dump_var($post);` and `exit();` at the top of it? – ourmandave Nov 03 '17 at 11:39
  • @nikunj i have read post as per your suggestion,its working for me now,thanks. – akgola Nov 03 '17 at 11:43

0 Answers0