Hi
I’ve been working on a little php application that is written in the good old fashion where php and html is in the same file.
Now I wan’t to rewrite the app to get the MVC structure and I’ve mad a simple framework to this purpose. But I have one question regarding the structure:
In the current app I have a file called Client.php and a file Client_action.php.
The Client_action.php is loaded into Client.php through a Iframe, and handles all actions like showing details, filling forms and so on. In this way I prevent the main page to reload all the time.
How do I do this in the MVC structure?
I should have a Client_Controller.php, a Client_Model.php and a Client_View.php, but what about the Client_action.php that I like to load into Client_Controller.php through a Iframe? (I have to be able to load it into other controllers).
Should I make a Client_action_Model.php and View to this, and load it through Client_Controller.php? (some kind of sub model)
Hope it’s understandably!