CI4 Errors and Exceptions - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: CodeIgniter 4 (https://forum.codeigniter.com/forumdisplay.php?fid=28) +--- Forum: CodeIgniter 4 Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=31) +--- Thread: CI4 Errors and Exceptions (/showthread.php?tid=71992) |
CI4 Errors and Exceptions - zurtri - 10-23-2018 In PHP The Right Way - this comment is made: Quote:PHP itself is fairly lax with this, and a call to file_get_contents() will usually just get you a FALSE and a warning. Many older PHP frameworks like CodeIgniter will just return a false, log a message to their proprietary logs and maybe let you use a method like $this->upload->get_error() to see what went wrong. The problem here is that you have to go looking for a mistake and check the docs to see what the error method is for this class, instead of having it made extremely obvious. https://phptherightway.com/#errors Will CI4 handle errors more correctly? I'm assuming the answer is a "yes". Also, once Ci4 is in production is there a task to contact PHP The Right Way guys and ask them to adjust there site? RE: CI4 Errors and Exceptions - skunkbad - 10-23-2018 Based on what I’m reading in that paragraph, and reading the paragraph immediately preceding it, I find it hard to believe that people actually read and believe that PHP The Right Way is a reliable source or reference. This is absolute garbage to read. RE: CI4 Errors and Exceptions - zurtri - 10-24-2018 I must agree that it is a bit of a trial to go through. It is often mentioned in reddit.com/r/PHP (along with a backstab to CI). RE: CI4 Errors and Exceptions - kilishan - 10-24-2018 Yes, the vast majority of failures in CI4 throw exceptions. |