I'm trying to wrap my head around the whole concept of MVC in developing PHP web applications. I sort of understand the general ideas, but for the life of me I just cannot translate that to any of the real world stuff I do.
I mostly build small, one-off applications at work (phone books, surveys, event registrations, etc.) basically the "enter stuff in a DB on one end and display a search-able, sortable formatted page for the users" on the other end. Trying to apply MVC concepts to these kinds of applications seems to me a huge time sink for very little gain. I feel like I'm writing 2-3 times as much code building classes for models, views and controllers in addition to templates for the one or two pages that a small project usually needs.
I usually get frustrated and simply resort back to the old approach of DB query code on top of the page and some interleaved or included PHP code in the <body> for display.
Am I somehow unclear on the concept here when it comes to MVC? Or am I simply not building the types of web apps that would require MVC?
Any input or suggestions would be greatly appreciated. I'm starting to feel like I'm the only person that doesn't "get it" right now.
I mostly build small, one-off applications at work (phone books, surveys, event registrations, etc.) basically the "enter stuff in a DB on one end and display a search-able, sortable formatted page for the users" on the other end. Trying to apply MVC concepts to these kinds of applications seems to me a huge time sink for very little gain. I feel like I'm writing 2-3 times as much code building classes for models, views and controllers in addition to templates for the one or two pages that a small project usually needs.
I usually get frustrated and simply resort back to the old approach of DB query code on top of the page and some interleaved or included PHP code in the <body> for display.
Am I somehow unclear on the concept here when it comes to MVC? Or am I simply not building the types of web apps that would require MVC?
Any input or suggestions would be greatly appreciated. I'm starting to feel like I'm the only person that doesn't "get it" right now.