Welcome Guest, Not a member yet? Register   Sign In
extending the core
#1

[eluser]ronnie_nsu[/eluser]
Hi Everybody
I am in a situation where i need to add an extra line in a function of the core CI_Exceptions
class.But since i didnt want to modify the core files i tried to create a class theat extends CI_Exceptions..and its named as MY_Exceptions (extends CI_Exception....calls parent constructor..etc etc).Note that in the config file the subclas_prefix = 'MY_'.

but for some reason my custom exceptions class is not being loaded but the core one is in action...anything that i am missing???
#2

[eluser]gh0st[/eluser]
Put it in application/libraries. It should work after that.




Theme © iAndrew 2016 - Forum software by © MyBB