rainmotorsports
Well-known member
I have been porting a procedural application to ...not sure I can actually call it MVC. Since I am still only a step past my front controller, I have read up on alternatives. The entire point of the move is to abstract everything into easy to maintain code.
Given the stateless nature of HTTP. A lot of these alternatives seem like terrible attempts when applied to PHP at changing that for the application. The rest seem to be no different than random developers takes on implementing MVC.
From my view point a user makes a request, that request is handled in code. At some point the code interacts with the database. The code eventually returns the view. MVC as I have done it gets off on the wrong foot since the users first action starts at the Controller. Shouldn't it be CMV? I guess by the time the concept made its way to stateless web development, abstract portions of the concept were no longer exact.
I abstract my main code out to the "controllers", the data handling to the "model", the "view" is passed relevant variables and handles rendering the templates. Am I crazy or what concept does this best fit under?
Given the stateless nature of HTTP. A lot of these alternatives seem like terrible attempts when applied to PHP at changing that for the application. The rest seem to be no different than random developers takes on implementing MVC.
From my view point a user makes a request, that request is handled in code. At some point the code interacts with the database. The code eventually returns the view. MVC as I have done it gets off on the wrong foot since the users first action starts at the Controller. Shouldn't it be CMV? I guess by the time the concept made its way to stateless web development, abstract portions of the concept were no longer exact.
I abstract my main code out to the "controllers", the data handling to the "model", the "view" is passed relevant variables and handles rendering the templates. Am I crazy or what concept does this best fit under?