I am quite new to OOP and classes. One thing I am struggling with is that if there are errors within a method of a class, no error messaging is displayed, the page just breaks. Does anyone know why this is or how I can get this to display errors?
1 Answer
http://us.php.net/manual/en/function.error-reporting.php
Put this at the top of the page that includes your class.
<?php
error_reporting(E_ALL);
?>
1 Comment
LeeTee
Id originally added this error reporting inside the class and not inside the page that includes the class. I have moved it and it seems to be working. Thanks.
ini_set('display_errors', 1)