Welcome Guest, Not a member yet? Register   Sign In
Why can't we use static objects?
#10

(07-05-2015, 09:20 AM)twpmarketing Wrote: The use of a "default" authentication "system" is only acceptable if it can be disabled by the developer.  The developer might not want to use the default authentication and must be allowed to replace it with another auth system.  I think this could be implemented as a simple configuration flag. 

They really wouldn't even need a configuration flag. They could allow it to be overridden just like almost every other class in CodeIgniter, so the replacement could be as simple as dropping a MY_Authentication class into the application.

I agree with the basic idea that CI is best served by staying simple and limiting what's included in the core system, but I think people often overlook how easy CI usually makes it to override and extend the included functionality.
Reply


Messages In This Thread
Why can't we use static objects? - by rakibtg - 07-04-2015, 01:17 PM
RE: Why can't we use static objects? - by kenjis - 07-04-2015, 04:19 PM
RE: Why can't we use static objects? - by rakibtg - 07-05-2015, 08:32 AM
RE: Why can't we use static objects? - by mwhitney - 07-06-2015, 07:25 AM
RE: Why can't we use static objects? - by kenjis - 07-04-2015, 09:51 PM
RE: Why can't we use static objects? - by rakibtg - 07-06-2015, 05:34 AM
RE: Why can't we use static objects? - by kenjis - 07-06-2015, 02:55 PM
RE: Why can't we use static objects? - by rakibtg - 07-06-2015, 11:39 AM



Theme © iAndrew 2016 - Forum software by © MyBB