MVC Coding Style Best practices
- by user1378680
I'm trying to learn how to code in MVC ... Normally what i do most times is that I write all the codes first, then break out the functions..
Have the functions into a seperate file and include it at the top of the
page when I need it.
1) This method seem to work for me, although that means i require
more time to make out the functions. Is this normal for learners.?
2) When I'm doing MVC
:
Model - contains all the functions and it's included in the view
View - This has to do with the display of the whole app
What is the use of Controller?
Thanks for you time and patience. I most appreciate it.
My language prefrence is PHP with MySQL