Model View Controller

Loading...

Flash Player 9 (or above) is needed to view presentations.
We have detected that you do not have it on your computer. To install it, go here.

0 comments

Post a comment

    Post a comment
    Embed Video
    Edit your comment Cancel

    Favorites, Groups & Events

    Model View Controller - Presentation Transcript

    1. Model View Controller
    2. What is MVC
      • Before we look at MVC we need a small history of Web Technologies and design patterns
      • CGI
      • ASP or php or jsp
      • Event based frameworks like ASP.NET java faces
    3. Design Pattern
      • Adhoc (Write what you feel)
      • Event based design with various kinds of controllers
      • Model View Controller
    4. MVC Schematic View
    5. Client and Dispatcher
      • Client is Typically an Http 1.0 and above compliant client like a web browser
      • Dispatcher is typically a routing table which would dispatch a particular request to a particular controller
    6. View
      • HTML
      • XML
      • Javascript
      • etc
    7. Controller and Actions
      • http://localhost/controller/action/parameters
      • If something is going to hit your website it has to be through a controller and an action
      • Use base classes for specific controllers
      • Load helper components in controllers
      • Define actions of the same controller like
      • Controller – User :: Actions – add, edit, delete
    8. Model
      • This is nothing but your business layer.
      • All your business logic is written here
      • Eg: Send Email after registration
      • Eg: delete a relationship on delete of an entity
      • Etc
      • Heart of your application
    9. FAQ
      • What code goes in Model and what in Controller?
      • Why is MVC a better design pattern
      • Is View dumb?
      • Model sounds like just get set methods, why do you say it is the heart?
      • Are Controllers reusable?
      • How are models reusable?
    10. Active Records
      • Convention over configuration
      • Why is this called Active records
      • Easily defining relationships
      • Magic Methods
      • Drawbacks

    + urs_tushurs_tush, 2 years ago

    custom

    706 views, 0 favs, 0 embeds more stats

    More info about this document

    © All Rights Reserved

    Go to text version

    • Total Views 706
      • 706 on SlideShare
      • 0 from embeds
    • Comments 0
    • Favorites 0
    • Downloads 35
    Most viewed embeds

    more

    All embeds

    less

    Flagged as inappropriate Flag as inappropriate
    Flag as inappropriate

    Select your reason for flagging this presentation as inappropriate. If needed, use the feedback form to let us know more details.

    Cancel
    File a copyright complaint
    Having problems? Go to our helpdesk?

    Categories