I'm quickly getting knee-deep in larger and larger applications so I thought it'd be a good idea to learn what patterns are and how they work, etc. So, I'm watching some tutorials on youtube and reading some books on patterns and design principles and MVC comes up. I'd heard of it but never really understood it and have yet to use Zend or CodeIgniter or the others that use it intrinsically.
Anyway, in the process of studying the topic of MVC, it seems as if I'm already using it. Can someone verify? Here is how I normally go about setting up an application using a login system as a for instance:
login.php - this is the html page that shows the form. The form submits to:
process.php - this class checks the value of submit and based on the value, validates inputs, checks password, sends back applicable erros, if everything is kosher it instantiates a User object:
user.php - this is a class that templates the properties and methods a user will need including things such as adding the user to the database, pulling profile information, logging out, instantiating a private message object from the user, sets the session variables needed, etc. Information is then returned to process.php which then header redirects back to the main page with a successful login.
So...is this a simple MVC? In the studying I've done, login sounds like view, process sounds like controller, and user sounds like model. I'm sure there's a bit more in-depth here, but I'm really trying to wrap my head around this stuff so any adjustments to my logic are more than welcome. Thanks.