Hurry! Save Up to 50% On Your Purchase | March 2021 X

What is the simplest way to display errors in CodeIgniter?

Please follow the steps below:

  1. Click open index.php.
  2. You will see that the code is in production mode.
  3. The display_errors setting is turned off, by default.
  4. Change the mode to development.
  5. Now, an error message is displayed.
  6. The error includes the file name and line number.
  7. After fixing the error it's recommended to turn the default mode back to production.