Welcome Guest, Not a member yet? Register   Sign In
Is The Implementation of Codeigniter Drivers Broken?
#1

[eluser]Vheissu[/eluser]
Is the way Codeigniter drivers currently work fundamentally broken? I recently built a driver based authentication library but noticed there is a major flaw in how drivers work or I might just be picky, I don't know.

If I have a simpleauth driver, facebook driver, twitter driver how can I standarise the library if not all drivers will share the same methods as one another? What if I have an LDAP driver as well, then it gets complicated. Not all auth drivers will share the same functions in common.

Am I just being picky by thinking that $this->auth->drivername->function is a long way to do things, when I could have a parent class route the function calls so I can go $this->auth->function instead? Is it good practice to implement the functions in the parent class instead of letting the drivers have free reign?


Messages In This Thread
Is The Implementation of Codeigniter Drivers Broken? - by El Forum - 04-06-2011, 10:59 PM
Is The Implementation of Codeigniter Drivers Broken? - by El Forum - 04-06-2011, 11:33 PM
Is The Implementation of Codeigniter Drivers Broken? - by El Forum - 04-06-2011, 11:40 PM



Theme © iAndrew 2016 - Forum software by © MyBB