|
What is MVC Architecture ?
|
|
07-17-2011, 02:16 AM
(This post was last modified: 07-17-2011 02:34 AM by smitdgr.)
|
|||
|
|||
|
What is MVC Architecture ?
Hi Everyone,
Here I am with yet another theoretical tutorial. So please grab a cup of coffee and bear with me ![]() Yesterday we saw why we need some standard practices while programming (http://freevps.us/thread-1405.html) . Today's tutorial is sort of a continuation of the previous one. We now understand that Standard Practices are here to help us developers. They make our life easy. One of the current Good Practices of programming is "Separation of Concerns" [http://en.wikipedia.org/wiki/Separation_of_concerns]. Simply put, Separation of Concerns means that keeping different things separate. This makes maintaining them a lot easier. So what are the Concerns that we are talking about here ?? Most of the programs that we write have two main parts, usually. One part handles the part that is visible and other that handles the underlying logic of the program. The part that handles visual elements is termed as VIEW and the part that handles the business logic(the reason why we wrote the program in first place) is the MODEL. The part that handles them both and maintains the separation between them is the CONTROLLER. When we talk in terms of a web application, view is the part that users see in their browsers. A user sends request using the browser. The request is received by the controller. The controller then talks to the model and receives the response and sends the response to the view. The view then makes the GUI content and gives it to the controller. The controller sends back the response to the browser. You may notice that at no point model and view talk to each other directly. Please see the attached image to understand it better. I hope you guys find this post useful. Please do tell me if there are points that are not clear or not right or need more explanation. Thanks ![]() Oops I forgot to add the image !! Please check the image here. This is not my image, I got this from internet But this is a really nice image and explains the concept of MVC really clearly.
. . Thank you freeVps and Loomhosts for the amazing VPS . . |
|||
|
07-17-2011, 04:43 AM
|
|||
|
|||
|
RE: What is MVC Architecture ?
Really nice tutorial. The tutorial and the picture explains it all!. Thanks for that man
.
Patience has a limit and if you choose to be patient beyond this limit then it causes anger.
|
|||
|
07-17-2011, 08:37 AM
|
|||
|
|||
|
RE: What is MVC Architecture ?
Nice of you do this tutorials, this really helps me. What MVC PHP Framework would you recommend to a nub?
My blog |
|||
|
07-17-2011, 03:29 PM
(This post was last modified: 07-17-2011 03:30 PM by smitdgr.)
|
|||
|
|||
RE: What is MVC Architecture ?
(07-17-2011 08:37 AM)Magnuz Wrote: Nice of you do this tutorials, this really helps me. What MVC PHP Framework would you recommend to a nub? I would recommend CodeIgniter. They have good docs on their website and there is a lot of community support around it. If you are willing to put more effort, learn Zend Framework. It has a lot of interest in the enterprise market. It has backing of some really big names like IBM. Thanks (07-17-2011 04:43 AM)Exception Wrote: Really nice tutorial. The tutorial and the picture explains it all!. Thanks for that man I am glad you find it useful Exception. I hope that I am able to share more of my little knowledge on this forum. . . Thank you freeVps and Loomhosts for the amazing VPS . . |
|||
|
07-22-2011, 05:39 AM
|
|||
|
|||
|
RE: What is MVC Architecture ?
NIce tutorial, but can i asking about Code Igniter here? maybe anyone have tutorial about this..? thanks before
|
|||
|
07-24-2011, 01:22 AM
|
|||
|
|||
|
RE: What is MVC Architecture ?
True CodeIgniter is a good example of MVC Architecture implementation. Very well documented and and easy for beginners. Here is a tutorial from them: a basic blogging software
|
|||
|
« Next Oldest | Next Newest »
|
| User(s) browsing this thread: |
| 1 Guest(s) |










