I have an existing web application based on rudimentary file-by-file PHP. You know the type. I need to modify some of the application's functionality substantially, and it's a modification that would benefit greatly from using modules for new functionality. Problem is, I've never tired to work in an MVC style environment on top of a non-MVC application.
I don't know how much sense that makes - but for example, I have a root page for this new functionality called section_mgmt.php. This file initializes classes based on what's enabled for the current section (.htaccess file manages URL rewriting). These classes print out templates that are then displayed to the user, but also contain functions for handling the data. I have the forms submitting to section_mgmt.php, but ideally I need to be submitting to a function of the class the form came from. This is where you'd normally set 'action' to modulename/validatedata, which corresponds to the 'validatedata' function within the module 'modulename', but I don't think I can do that without an MVC framework.
I apologize for how unclear this might be, it's an odd scenario. I realize redeveloping the platform would be ideal, but that isn't viable right now. I'd love some help with the above scenario or possibly some tips into plopping MVC functionality on part of this application!
Thanks for your time!