mike177 Posted June 15, 2008 Share Posted June 15, 2008 Hi, I've been using php for about a year and a half now but I'm having a lot of trouble designing a good solid login system. My current system runs the profile, account settings, register and login system all from 4 files. I fell it’s to centralised. I want to have a file for each single system, e.g. the login page is just one page with all the functions and database connection and error handling all in one. Could someone please give some suggestions on how I could achieve this or show some example? Thanks in advance for anyhelp. Link to comment Share on other sites More sharing options...
keeB Posted June 15, 2008 Share Posted June 15, 2008 Take a look at the MVC Pattern [1] In this case, your View would be the page itself, the Controller would be the logic behind login/authentication/etc, and Model would be the User (and it's supporting/related objects) [1]: http://en.wikipedia.org/wiki/Model-view-controller Link to comment Share on other sites More sharing options...
redbullmarky Posted June 15, 2008 Share Posted June 15, 2008 please do not double post - you already have an open topic here regarding this one. Cheers Link to comment Share on other sites More sharing options...
Recommended Posts