What is the simplest way to display errors in CodeIgniter?
Please follow the steps below:
- Click open index.php.
- You will see that the code is in production mode.
- The display_errors setting is turned off, by default.
- Change the mode to development.
- Now, an error message is displayed.
- The error includes the file name and line number.
- After fixing the error it's recommended to turn the default mode back to production.