How Does a Login system generally work with OOP?

Posted by fakingfantastic on Stack Overflow See other posts from Stack Overflow or by fakingfantastic
Published on 2009-03-24T16:48:15Z Indexed on 2010/05/24 11:31 UTC
Read the original article Hit count: 209

Filed under:
|
|
|

Sorry if this is a badly formed question, but I'm trying to make my web applications (using PHP) more OO. *EDIT* I'm developing the Framework myself */EDIT* Everything is great so far, I've made a Front Controller system that taps into a MVC system. The FC figures out what page you want, loads the specific page Controller (*EDIT* which extends an abstract Controller Object */EDIT*), which gets anything it needs from Models, and then calls the appropriate View. Very basic.

But now, I need to make an admin section (quasi-CMS). How does a login system fit into the grand scheme of things? Do you set controllers as needing a login? If so, how? What If you only want certain views of a controller requiring login?

Thanks in advance.

© Stack Overflow or respective owner

Related posts about php

Related posts about mvc