Welcome Guest, Not a member yet? Register   Sign In
Unable to load library when extending a core library
#11

[eluser]musonic[/eluser]
@pickupman - Yes, that's right. I've tried that and it does successfully load the class. However, as I mentioned before, the csrf library requires use of the superobject. Because the Base5 class still hasn't been loaded, the get_instance() method is not available to the csrf library either. I suppose I could load the CI classes I need within the csrf library in the same way as you suggest, but I feel that is too much of a hack because there's (presumably) a reason why CI loads it's core classes in a certain order!
#12

[eluser]pickupman[/eluser]
You can still use PHP syntax so your code may not look the same using $this. Try replacing this-> syntax in your csfr library with the way you need to use it in your extended Input class.




Theme © iAndrew 2016 - Forum software by © MyBB