so i found out about PHP Frameworks. i found one that i really liked but there is a lingering question that i've just got in terms of PHP and coding patterns.
in MVC is a Model View Controller. being that the view is the stuff that the client side sees. the controller reacts to client actions. say moving the mouse here or there or pressing this or that. whatever. the model is the way that the program handles the data and events. correct?
[b]model[/b] --> handles data
|
V
[b]controller[/b] --> controls the events and is the middle man between view and model
|
V
[b]view[/b] --> shows the data
this is it more or less right?
well if i've got that correct let me go a little further then.
lets say that i'm building a CMS for my site (which i am). my model would be the SQL abstraction layer and the sessions layer correct?
my controller would be like a module correct? because it should handle the way that the model's data in controlled. also the view. the click within the form and what not.
the view is a smarty template wrapper. but moreso it's the actual HTML file (tpl) that is shown to the client
i'm trying to make more sence of this if i can get some help here. thank you 😃 😃 😃