Welcome Guest, Not a member yet? Register   Sign In
How do I make a database row be a global?
#2

First, use one of the already built and tested authentication systems out there. (don't reinvent the wheel...)

Second, create a MY_controller that all of the rest of your controllers inherit from, in the constructor, you can setup a call to your authentication methods. Since the system is "setup" at this point, the loading for the databases will work and everything will work as expected (just don't forget to inherit all of the controllers needing authentication to the MY_controller)
Reply


Messages In This Thread
RE: How do I make a database row be a global? - by Kaosweaver - 06-26-2017, 05:11 AM



Theme © iAndrew 2016 - Forum software by © MyBB