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

Slides:



Advertisements
Similar presentations
UNIT 13 Time Clauses. How do we show the time relationship between two sentences? We often use time words like: When Until Before After As / While Once.
Advertisements

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.
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
CPT 123 [299] Internet Skills Overview of the Internet Session One Class Notes DMWilliamson 1998.
1 Dr Alexiei Dingli Web Science Stream Introducing Rails.
_______________________________________________________________________________________________________________ E-Commerce: Fundamentals and Applications1.
Block Operator User Manual for eblocks.bih.nic.in.
2007cs Servers on the Web. The World-Wide Web 2007 cs CSS JS HTML Server Browser JS CSS HTML Transfer of resources using HTTP.
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.
CAS Proxying and Web Services The somewhat “easy way” Presented By: Joseph Mitola Programmer/Analyst Office Of The Registrar.
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
WWU Hackathon May 6 & 7.
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.
Data Virtualization Tutorial… CORS and CIS
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
Build Better Apps with MEAN.
SharePoint Cloud hosted Apps
IS333D: MULTI-TIER APPLICATION DEVELOPMENT
WEB API.
Web Browser server client 3-Tier Architecture Apache web server PHP
REST.
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.
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.
MVC Controllers.
Security: Authentication & Authorization
Databases and the MVC Model
Chengyu Sun California State University, Los Angeles
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
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 View records) Ye Olde Internet Demo Time! DB Server View 3 2 1 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

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 resource? Browser How to implement post new resource? Route URL pattern Controller uses Model to add rec Controller sends HTTP redirect Ye Olde Internet Demo Time! DB Server View 3 2 1 Router Controller Model

And the rest… show is like index edit/update is like new/create destroy needs some explaining… Demo Time!