CI has a system of its own for detecting and reporting errors. In one way, these are the simplest and most common tests of all: they are those helpful (or infuriating) messages you see when you are developing your own code and it doesn't work.
By default, CI displays all errors on the screen. The alternative is to fail silently; giving you no idea of what went wrong, so this is essential for development. Overall behavior is controlled from the main index.php
file, which begins:
/* |--------------------------------------------------------------- | PHP ERROR REPORTING LEVEL |--------------------------------------------------------------- | | By default CI runs with error reporting set to ALL. For security | reasons you are encouraged to change this when your site goes live. | For more info visit: http://www.php.net/error_reporting | */ error_reporting(E_ALL);
This is a PHP command. To turn off error reporting, replace the last line with:
error_reporting(0);
This would...