CrazyEngineers
  • Give me a bird's eye view of MVC architecture

    Kaustubh Katdare

    Kaustubh Katdare

    @thebigk
    Updated: Oct 22, 2024
    Views: 1.3K
    Can someone give me a bird's eye view of the MVC (Model-View-Controller) architecture typically used in software design? I've been looking for simpler definitions online but looks like people need large paragraphs of text to explain it.

    Would appreciate a brief, to-the-point explanation.
    0
    Replies
Howdy guest!
Dear guest, you must be logged-in to participate on CrazyEngineers. We would love to have you as a member of our community. Consider creating an account or login.
Replies
  • Anoop Kumar

    MemberMay 14, 2012

    View : front page, it just recieve the data from backend and show it.
    Controller: only redirect which request should go, a router between view and model which manages session also.
    Model: recieve *commands* from view, what to do,implement besiness logic, communicate to database.
    Are you sure? This action cannot be undone.
    Cancel
  • Kaustubh Katdare

    AdministratorMay 14, 2012

    Thanks, #-Link-Snipped-#
    Are you sure? This action cannot be undone.
    Cancel
  • sookie

    MemberMay 29, 2012

    ianoop
    Model: recieve *commands* from view, what to do,implement besiness logic, communicate to database.
    Correction here according to me(Please correct me if wrong!)
    Model do not receive any commands from view. It just consists of data fetched from database or from view. For e.g If you have a Form type page then data user enters in the page is binded in the request and sent to the database in the form of a Model and similarly if I have a page that display's users details from the database then these details are fetched from the database and sent to the "View" as a "Model". Hence in short "Model" is just an entity that represents the data.
    Are you sure? This action cannot be undone.
    Cancel
  • Anoop Kumar

    MemberMay 29, 2012

    Yes, the model didn't recieves commands from view. I was meaning that, it implements business logic what a user wants, models data and respond.
    the main purpose of MVC is saparating layers of presentation layer , controller layer and implementation layer.
    Are you sure? This action cannot be undone.
    Cancel
  • Kaustubh Katdare

    AdministratorMay 29, 2012

    Thanks, that makes more sense now.
    Are you sure? This action cannot be undone.
    Cancel
Home Channels Search Login Register