Https://flic.kr/p/4MRZPn MVC Controllers.

Slides:



Advertisements
Similar presentations
Lecture 6/2/12. Forms and PHP The PHP $_GET and $_POST variables are used to retrieve information from forms, like user input When dealing with HTML forms.
Advertisements

Reference and Instruction Automated Statistics Gathering and Reporting System Members: Patrick Chen (pyc7) Soo-Yung Cho (sc444) Gregg Herlacher (gah24)
INTRODUCTION The Group WEB BROWSER FOR RELATION Goals.
Apache Tomcat Server Typical html Request/Response cycle
06 | Implementing Web APIs Jon Galloway | Tech Evangelist Christopher Harrison | Head Geek.
Christopher M. Pascucci Basic Structural Concepts of.NET Browser – Server Interaction.
Databases and the Internet. Lecture Objectives Databases and the Internet Characteristics and Benefits of Internet Server-Side vs. Client-Side Special.
Server-side Scripting Powering the webs favourite services.
Web application architecture
Enabling Embedded Systems to access Internet Resources.
CPT 123 [299] Internet Skills Overview of the Internet Session One Class Notes DMWilliamson 1998.
IP BROS Presentation by: Amen Ahmed. Mario and Luigi are here to help us find our way through the internet. Mario will act as our browser and Luigi will.
_______________________________________________________________________________________________________________ E-Commerce: Fundamentals and Applications1.
Block Operator User Manual for eblocks.bih.nic.in.
Create, Update and Delete Carol Wolf Computer Science.
CITA 310 Section 2 HTTP (Selected Topics from Textbook Chapter 6)
Ruby on Rails Controller of MVC. Routes How we map URIs like /tweets/1 to calling the show method of the Controller.
Rails and routing INFO 2310: Topics in Web Design and Programming.
How Web Database Architectures Work CPS181s April 8, 2003.
Testing WebForms w/ Model-View-Presenter Erik Peterson.
Routes Carol Wolf Computer Science. RESTful Architecture  Rails uses REST-style architecture: representation state transfer  resources :courses in routes.rb.
MVC Controllers TestsMigrations Ye Olde Internet Model DB Server Router View Browser Today’s focus Controller.
Jim Fawcett CSE686 – Internet Programming Summer 2010
Jim Fawcett CSE686 – Internet Programming Spring 2014
Databases and the MVC Model
An introduction to ASP.Net with MVC Nischal S
Introduction to PHP Lesson 6.
How HTTP Works Made by Manish Kushwaha.
Section 6.3 Server-side Scripting
HTTP AND ABSTRACTION ON THE INTERNET
Jim Fawcett CSE686 – Internet Programming Spring 2012
MVC Architecture, Symfony Framework for PHP Web Apps
Section 13 - Integrating with Third Party Tools
1993 version of Mosaic browser.
CNIT 131 Internet Basics & Beginning HTML
Play Framework: Introduction
Server sends index-HTML-Code Enter in Browser (localhost/name) Local Server Browser Requests Data Server sends index-HTML-Code.
Networks Problem Set 1 Due Oct 3 Bonus Date Oct 2
Design Patterns: Model View Controller
CMPE 280 Web UI Design and Development October 24 Class Meeting
PHP / MySQL Introduction
Build Better Apps with MEAN.
Web Browser server client 3-Tier Architecture Apache web server PHP
KMIP Entity Object and Client Registration
Web Systems Development (CSC-215)
Servlet APIs Every servlet must implement javax.servlet.Servlet interface Most servlets implement the interface by extending one of these classes javax.servlet.GenericServlet.
CS320 Web and Internet Programming MVC Architecture
Objectives In this lesson you will learn about: Need for servlets
This presentation document has been prepared by Vault Intelligence Limited (“Vault") and is intended for off line demonstration, presentation and educational.
Hyper Text Transfer Protocol
Lecture 5: Functions and Parameters
Databases and the MVC Model
Databases and the MVC Model
Cancel a room booking No No No Next page Yes Yes Yes No Yes Next page
Back end Development CS Programming Languages for Web Applications
MVC Controllers.
Security: Authentication & Authorization
Databases and the MVC Model
Chengyu Sun California State University, Los Angeles
MVC Controllers.
Databases and the MVC Model
Ajax and JSON Jeremy Shafer Department of MIS Fox School of Business
WJEC GCSE Computer Science
Client-Server Model: Requesting a Web Page
[Based in part on SWE 432 and SWE 632 materials by Jeff Offutt, GMU]
Information Retrieval and Web Design
Your computer is the client
Back end Development CS Programming Languages for Web Applications
Asp.Net MVC Conventions
Chengyu Sun California State University, Los Angeles
Presentation transcript:

https://flic.kr/p/4MRZPn MVC Controllers

Ye Olde Internet Today’s focus Browser DB Server View Router Controller Model

5 Basic Controller Patterns Create new/create: Enter a new record Read index: List all records show: Display a particular record Update edit/update: Modify an existing record Delete destroy: Remove a record

5 Basic Controller Patterns Create new/create: Enter a new record Read index: List all records show: Display a particular record Update edit/update: Modify an existing record Delete destroy: Remove a record

How to implement index? Ye Olde Internet Browser DB Server View Router Controller Model

How to implement index? Ye Olde Internet Demo Time! Browser How to implement index? Route “index” URL pattern Controller uses Model to retrieve records Controller uses View to generate HTML (passes records to View) Ye Olde Internet Demo Time! DB Server View 3 1 Router Controller Model 2

5 Basic Controller Patterns Create new/create: Enter a new record Read index: List all records show: Display a particular record Update edit/update: Modify an existing record Delete destroy: Remove a record ✔

How many HTTP requests does it take to create a record? Browser How many HTTP requests does it take to create a record? Ye Olde Internet DB Server View Router Controller Model

How many HTTP requests does it take to create a record? Browser How many HTTP requests does it take to create a record? Two: One to request a form (GET) One to perform the add (POST) Ye Olde Internet DB Server View Router Controller Model

How to implement get form? Browser How to implement get form? Ye Olde Internet DB Server View Router Controller Model

How to implement get form? Browser How to implement get form? Route URL pattern Controller uses View to generate HTML (passes View records) Ye Olde Internet DB Server View 2 1 Router Controller Model

How to implement post new record? Browser How to implement post new record? Ye Olde Internet DB Server View Router Controller Model

How to implement post new record? Browser How to implement post new record? Route URL pattern Controller uses Model to add rec Controller sends HTTP redirect Ye Olde Internet Demo Time! DB Server View 3 1 Router Controller Model 2

5 Basic Controller Patterns Create new/create: Enter a new record Read index: List all records show: Display a particular record Update edit/update: Modify an existing record Delete destroy: Remove a record ✔ ✔ Like index Like create Needs explaining… Demo Time!