Best practice for error handling in codeigniter / php apps
        Posted  
        
            by Industrial
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by Industrial
        
        
        
        Published on 2010-04-24T17:15:48Z
        Indexed on 
            2010/04/24
            18:23 UTC
        
        
        Read the original article
        Hit count: 249
        
Hi everyone,
We're working with a new codeigniter based application that are cross referencing different PHP functions forwards and backwards from various libraries, models and such.
We're running PHP5 on the server and we try to find a good way for managing errors and status reports that arises from the usage of our functions. 
While using return in functions, the execution is ended, so nothing more can be sent back. Right?
What's the best practice to send a status information or error code upon ending execution of actual function?
Should we look into using exceptions or any other approach? http://us.php.net/manual/en/language.exceptions.php
© Stack Overflow or respective owner