Welcome Guest, Not a member yet? Register   Sign In
Multiple admin areas & user identification - best approach?
#5

(This post was last modified: 10-31-2016, 06:39 AM by cartalot.)

(10-30-2016, 04:59 PM)Neo Wrote: I decided to instantiate a user object in the constructor, which I can then use in the other methods. 

cool - you will see that will save you so much time. generally in a controller there is something that needs to be referred to by every method. by doing $this->vip in the constructor or first method, it can save a bunch of time.

(10-30-2016, 04:59 PM)Neo Wrote: I am not sure about moving the login-verification into a separate model, as the Ion-Auth-class is already the model that handles all DB-queries etc. Will have to think about that...  Huh

Actually you are doing what i suggested - you are calling it from a model ! Wink
Reply


Messages In This Thread
RE: Multiple admin areas & user identification - best approach? - by cartalot - 10-31-2016, 06:38 AM



Theme © iAndrew 2016 - Forum software by © MyBB