I'm trying to understand MVC thing and so far I know that it's used to separate business logic from the view logic (something as HTML and CSS), but I fail at point when I need to organize my files.
Lets say that I have 3 files:
- form.php which is displayed to the user, it takes user input and submits data
- process.php which takes and handle data from form.php, then connects to database and retrieve requested informations
- display.php which display processed data (result) from process.php in organized way
So looking at my example:
- form.php would be controller
- process.php would be model and
- display.php would be view
Right?