MVC Coding Style Best practices

Posted by user1378680 on Programmers See other posts from Programmers or by user1378680
Published on 2012-06-04T18:37:37Z Indexed on 2012/06/04 22:46 UTC
Read the original article Hit count: 145

Filed under:
|
|

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

© Programmers or respective owner

Related posts about php

Related posts about mvc