Welcome Guest, Not a member yet? Register   Sign In
Loading some database related stuff in most of my controllers
#1

[eluser]Gijs Bloemen[/eluser]
Hi Guys,

I am busy with scripting a system that requires a back-end with login system. What I want now is that I can just load 1 file each time when te system needs to do a login check and that I do not have to place in each controller where I need te function the full function. The first thing I thaugt was loading a plugin, who checks if a user is logged in, and if it is he does nothing and just load te controller the user called in the browser, and if he or she is not logged in he loads te login controller. But my question is, is it permitted by the codeigniter 'standards' to use models (I need to pick up information about the user from my database) in a plugin? Or how do I need to do this by the codeigniter 'standards'?

Regards,
Gijs Bloemen




Theme © iAndrew 2016 - Forum software by © MyBB