1 00:00:00,006 --> 00:00:02,581 Although C is the last letter in MVC, 2 00:00:02,581 --> 00:00:06,494 I'm gonna start with it first because it runs the show. 3 00:00:06,494 --> 00:00:10,861 C stands for controller, and it handles a the communication between a user and 4 00:00:10,861 --> 00:00:13,780 the various parts of an application. 5 00:00:13,780 --> 00:00:19,052 For example a, user wouldn't talk directly to the database on IMBb.com. 6 00:00:19,052 --> 00:00:22,210 Instead, they would visit a page like this. 7 00:00:22,210 --> 00:00:24,470 The URL is known as a route, and 8 00:00:24,470 --> 00:00:29,640 represents a request to see information on the classic movie Toy Story. 9 00:00:29,640 --> 00:00:32,480 The URL is routed to the controller. 10 00:00:32,480 --> 00:00:36,800 Remember, the controller handles all of the communication in the app. 11 00:00:36,800 --> 00:00:39,680 The controller then knows that it needs some data. 12 00:00:39,680 --> 00:00:43,020 So it requests information about the movie. 13 00:00:43,020 --> 00:00:47,480 On a complex web application, you may need to create multiple controllers, 14 00:00:47,480 --> 00:00:50,560 each to handle a different type of request. 15 00:00:50,560 --> 00:00:55,130 For example, one controller to handle logging in and out of the website. 16 00:00:55,130 --> 00:00:58,550 Another controller to handle requests for movie data. 17 00:00:58,550 --> 00:01:04,070 Or a handler to process requests from users who want to download movie files. 18 00:01:04,070 --> 00:01:08,030 There are more steps to the process, which I'll discuss in the next videos. 19 00:01:08,030 --> 00:01:11,330 But at this point, keep in mind that controllers act 20 00:01:11,330 --> 00:01:15,430 as an interface between a user and the behind the scenes magic of an app