Extending php Exception class... how to integrate into CI |
[eluser]Unknown[/eluser]
This is an old post, but in case this helps someone. When extending core classes you need to place your file in the <b>application/core</b> directory; not in the libraries folder. See http://ellislab.com/codeigniter/user-gui...asses.html. Your extended class will not get called otherwise. Also, I believe the below needs a constructor something closer to this: Code: public function __construct() Hopefully that helps. [quote author="AtlantixMedia" date="1203957645"]I also need to extend the CI_Exceptions class. I named it MY_Exceptions.php and put it in /applications/libraries/ Code: <?php if (!defined('BASEPATH')) exit('No direct script access allowed'); however, functions in MY_Exceptions do not seem to be overridden at all. functions in Exceptions are the one which are run[/quote] |
Welcome Guest, Not a member yet? Register Sign In |