CodeIgniter Tutorial : Best Practice for Error Handling in Codeigniter

Publicado el: 04 enero 2017
en el canal de: Batik Kode (Wahyu Widodo)
10,083
54

Many times, while using application, we come across errors. It is very annoying for the users if the errors are not handled properly. CodeIgniter provides an easy error handling mechanism.

You would like the messages to be displayed, when the application is in developing mode rather than in production mode as the error messages can be solved easily at the developing stage.

The environment of your application can be changed, by changing the line given below from index.php file. This can be set to anything but normally there are three values (development, test, production) used for this purpose.

Different environment will require different levels of error reporting. By default, development mode will display errors and testing and live mode will hide them. Change from development to production for hide this error.

Next, logging can be enabled in application/config/config.php file. Given below is the screenshot of config.php file, where you can set threshold value.

You can find the log messages in application/log/. Make sure that this directory is writable before you enable log files.


En esta página del sitio puede ver el video en línea CodeIgniter Tutorial : Best Practice for Error Handling in Codeigniter de Duración hora minuto segunda en buena calidad , que subió el usuario Batik Kode (Wahyu Widodo) 04 enero 2017, comparta el enlace con amigos y conocidos, en youtube este video ya ha sido visto 10,083 veces y le gustó 54 a los espectadores. Disfruta viendo!