![]() ![]() Everything was working fine but when I used for loop then following. ![]() Using exceptions is a good practice providing all your classes/framework are designed to work with them. i am trying to convert my PHP/HTML form into pdf by using dompdf after clicking submit button. Your error is a MySQL error, caused by the information youre sending MySQL to tell it what to retrieve. I'm trying to catch those errors in the same way as exceptions. 1 Answer Sorted by: 31 Just FYI, I don't use exceptions in CodeIgniter tho I'm using them a lot in Kohana, just because the framework throws them and everything is designed to work with exceptions unlike CodeIgniter. 1 Answer Sorted by: 1 You should not use registershutdownfunction () for that - it makes no sense since youre already at stage when script is exiting. This work perfectly, however it misses PHP fatal errors which just show a HTTP 500 response. ![]() The entry point (front controller) for our software is wrapped in a try catch block which catches exceptions and then includes a PHP file to show a friendly error page, as well as emailing us about the exception. We will show different error handling methods: Basic use of Exceptions Creating a custom exception handler Multiple exceptions Re-throwing an exception. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |