title: Best practice for error handling in codeigniter / php apps
body: <p>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.</p>
  
  <p>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 <code>return</code> in functions, the execution is ended, so nothing more can be sent back. Right?</p>
  
  <p>What's the best practice to send a status information or error code upon ending execution of actual function?</p>
  
  <p>Should we look into using exceptions or any other approach?
  <a href="http://us.php.net/manual/en/language.exceptions.php" rel="nofollow noreferrer">http://us.php.net/manual/en/language.exceptions.php</a></p>