InterviewSolution
Saved Bookmarks
| 1. |
Explain Inhibitor and error handling in CodeIgnitor. |
|
Answer» LIKE every other framework, codeIgnitor let you build the error reporting, also error logging class permits errors and debugging messages to be saved as a text FILE. Following are the common error logging functions:
To enable error logging you MUST set the “threshold” for logging in application/config/config.php. Also, your logs directory must be writable. $config['log_threshold'] = 1; Inhibitor is an error handling class in CodeIgniter. It uses PHP ‘s native functions like register_shutdown_function, set_exception_handler, set_error_handler to handle parse errors, exceptions, and fatal errors. |
|