MVC Primer

View previous topic View next topic Go down

MVC Primer

Post by Admin on Fri Sep 16, 2016 5:16 pm

I have been mouthing off about this pattern for some time now. Now it is time for you guys to get the foundations and the full understand of what it really is.

Read Articles here and here and in your own words, tell me what you think the M the V and the C mean. Also, what are the major advantages you can see from using this pattern.

Having done this, list the frameworks in PHP that you know of (or can find) that utilize this architectural design pattern.

Admin
Admin

Posts : 7
Join date : 2016-09-16

View user profile http://appliedweb.fullforums.org

Back to top Go down

Re: MVC Primer

Post by Sydney Parker on Fri Sep 16, 2016 9:09 pm

M - models this where the the application basically collects data an send it to the V - view Where it is displayed to the user on screen C - controller is where the data is processed or complied and send to the M. the Major advantage is that the coder and designer can be working on a project at the same time without interfering with each other. with this application also the site can be updated quickly.

Sydney Parker

Posts : 6
Join date : 2016-09-16

View user profile

Back to top Go down

Re: MVC Primer

Post by MsChris on Fri Sep 16, 2016 9:35 pm

MVC means M (Model) V (View) C (control)
Model is the name given to the permanent storage of the data used in the overall design. This is the area that basically molds the data before sending it to be viewed.
View is where data, requested from the Model, is viewed and its final output is determined. View is mainly for display purposes and:
The Control or controller's job is to handle data that the user inputs or submits, and update the Model accordingly.
Two advantages of using the type of architecture are:
Multiple view support and faster development process because a separate coder can work on each of the areas.

Not sure if this is correct but Zend, Symfony, CodeIgniter, CakePHP, Yii, and Laravel are some of the frameworks that utilizes the MVC architecture.

MsChris

Posts : 4
Join date : 2016-09-16

View user profile

Back to top Go down

Re: MVC Primer

Post by recado.campbell on Fri Sep 16, 2016 10:11 pm

The M represents the model used to handle data and the logic of the applications and where database operations takes place, it here that the application logic encapsulation is done. V for View is the presentation layer where the formatting of data is done after being received from the model layer where it is accessible by users. C represents the controller which is the first step in making requests, it then parses and initializes it and makes a to the model layer and takes the response produced from the model and sends it to the presentation layer.

recado.campbell

Posts : 5
Join date : 2016-09-16

View user profile

Back to top Go down

Re: MVC Primer

Post by DonDucks on Sun Sep 18, 2016 8:16 pm

MVC is just a general design pattern that, in the context of lean web app development, makes it easy for the developer to keep the HTML markup in an app’s presentation layer (the view) separate from the methods that receive and handle client requests (the controllers) and the data representations that are returned within the view (the models). Basically it separate's code kind of how we use style sheets to separate our styling from our php file making it easier to edit later and As my Colleugue Rightfully said MVC Frameworks for Building PHP Web Applications, Introduces the six most popular PHP frameworks—Zend, Symfony, CodeIgniter, CakePHP, Yii, and Laravel.

DonDucks

Posts : 3
Join date : 2016-09-16

View user profile

Back to top Go down

Re: MVC Primer

Post by Ricardo McDonald on Sun Sep 18, 2016 9:26 pm

In MVC, the Model represents the information (the data) of the application and the business rules used to manipulate the data, the View corresponds to elements of the user interface such as text, checkbox items, and so forth, and the Controller manages details involving the communication to the model of user actions such as keystrokes and mouse movements.

Ricardo McDonald

Posts : 5
Join date : 2016-09-16

View user profile

Back to top Go down

Re: MVC Primer

Post by the-dre on Mon Sep 19, 2016 5:48 pm

Model View Controller, or MVC, is a coding design pattern which aims to separate the key components of a web application for ease of development and maintenance. Similar patterns exist which dispense with the 'model' layer, employing only controllers and views (VC) - the objective is the same however - logical organisation, and easy reuse, of code.

Other php frameworks that employ MVC:
Laravel.
CodeIgniter.
CakePHP.
Symfony.
Zend Framework 2.
Phalcon.
Yii.
Aura.

the-dre

Posts : 5
Join date : 2016-09-17

View user profile

Back to top Go down

Re: MVC Primer

Post by Anthony Lawrence on Wed Sep 21, 2016 4:38 pm

MVC stands for Model-View-Controller, and this pattern represents the concept of breaking down your application into three coherent parts: the Model (or Data layer), the View (or User Interface layer) and the Controller which mediates user interface interactions and updates to the Model.

There are many benefits of the MVC pattern, an important one (often least mentioned) is that it can provide RESTful (search engine friendly) urls which enables Search Engine Optimization (SEO). When you name your Controllers and Actions wisely, it makes it easier for search engines to find your site (and rank them higher cyclops) if they only take a look at your site Urls.

In addition, the articles and other posts to this topic will mention code re-usability, separation of concerns and less coupling between the layers which will foster better maintaining of your own and foreign code.

I have used the Zend Framework, currently use the Laravel 5 Framework and have played around with the Yii Framework.

Anthony Lawrence

Posts : 5
Join date : 2016-09-19

View user profile

Back to top Go down

Re: MVC Primer

Post by Sponsored content


Sponsored content


Back to top Go down

View previous topic View next topic Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum