Welcome Guest, Not a member yet? Register   Sign In
Basic question - need some pointers on extending a library

Or a definitive "you can't do that".

I'm using the HMVC libraries for CI and have an "admin" module that I've been using for several years.  Within that module is an "authentication" library that I use all over the place.

I've got some app-specific code that's been pushed down into the module and I'd like to decouple the two.

To that end I've created an AppAuthentication class that my app loads which extends the module Authentication.  I've got appropriate functions overloaded in my version so that I can perform app-specific operations after login and logout.

The problem is that the module still wants to load the base version and so my overload never gets called.

How can I get the module to load my class without having app-specific code down in the module?

Would I need to pass an instance of my class down to the authentication module and mod it use use that?

Or am I asking for too much?

Sorry for the basic question but there are still swaths of PHP I'm not familiar with.

Messages In This Thread
Basic question - need some pointers on extending a library - by michaelh99 - 04-13-2016, 10:05 AM

Theme © iAndrew 2016 - Forum software by © MyBB