All language subtitles for 5. Define Controller Methods

af Afrikaans
ak Akan
sq Albanian
am Amharic
ar Arabic
hy Armenian
az Azerbaijani
eu Basque
be Belarusian
bem Bemba
bn Bengali
bh Bihari
bs Bosnian
br Breton
bg Bulgarian
km Cambodian
ca Catalan
ceb Cebuano
chr Cherokee
ny Chichewa
zh-CN Chinese (Simplified)
zh-TW Chinese (Traditional)
co Corsican
hr Croatian
cs Czech
da Danish
nl Dutch
en English
eo Esperanto
et Estonian
ee Ewe
fo Faroese
tl Filipino
fi Finnish
fr French Download
fy Frisian
gaa Ga
gl Galician
ka Georgian
de German
el Greek
gn Guarani
gu Gujarati
ht Haitian Creole
ha Hausa
haw Hawaiian
iw Hebrew
hi Hindi
hmn Hmong
hu Hungarian
is Icelandic
ig Igbo
id Indonesian
ia Interlingua
ga Irish
it Italian
ja Japanese
jw Javanese
kn Kannada
kk Kazakh
rw Kinyarwanda
rn Kirundi
kg Kongo
ko Korean
kri Krio (Sierra Leone)
ku Kurdish
ckb Kurdish (Soranî)
ky Kyrgyz
lo Laothian
la Latin
lv Latvian
ln Lingala
lt Lithuanian
loz Lozi
lg Luganda
ach Luo
lb Luxembourgish
mk Macedonian
mg Malagasy
ms Malay
ml Malayalam
mt Maltese
mi Maori
mr Marathi
mfe Mauritian Creole
mo Moldavian
mn Mongolian
my Myanmar (Burmese)
sr-ME Montenegrin
ne Nepali
pcm Nigerian Pidgin
nso Northern Sotho
no Norwegian
nn Norwegian (Nynorsk)
oc Occitan
or Oriya
om Oromo
ps Pashto
fa Persian
pl Polish
pt-BR Portuguese (Brazil)
pt Portuguese (Portugal)
pa Punjabi
qu Quechua
ro Romanian
rm Romansh
nyn Runyakitara
ru Russian
sm Samoan
gd Scots Gaelic
sr Serbian
sh Serbo-Croatian
st Sesotho
tn Setswana
crs Seychellois Creole
sn Shona
sd Sindhi
si Sinhalese
sk Slovak
sl Slovenian
so Somali
es Spanish
es-419 Spanish (Latin American)
su Sundanese
sw Swahili
sv Swedish
tg Tajik
ta Tamil
tt Tatar
te Telugu
th Thai
ti Tigrinya
to Tonga
lua Tshiluba
tum Tumbuka
tr Turkish
tk Turkmen
tw Twi
ug Uighur
uk Ukrainian
ur Urdu
uz Uzbek
vi Vietnamese
cy Welsh
wo Wolof
xh Xhosa
yi Yiddish
yo Yoruba
zu Zulu
Would you like to inspect the original subtitles? These are the user uploaded subtitles that are being translated: 1 00:00:01,320 --> 00:00:09,840 Welcome to the course of Legal Aid EPA material, this is part of a 21 inside feed you filthy controller 2 00:00:09,840 --> 00:00:11,040 method settings. 3 00:00:11,670 --> 00:00:17,910 If I back Ed now, in the last few you we had created two controllers. 4 00:00:18,040 --> 00:00:25,180 If you go inside and asked to be controllers, EPA, and as you can see that we have to control called 5 00:00:25,200 --> 00:00:28,640 Brossette controller as well as student controller. 6 00:00:29,280 --> 00:00:32,880 So what what are the methods we want for these controllers. 7 00:00:33,240 --> 00:00:40,200 So formatter information if we go inside the slide, these are actually EPA's will to create insight. 8 00:00:40,320 --> 00:00:42,640 Second phase of EPA development. 9 00:00:43,410 --> 00:00:50,350 So inside student controller, we need a register method, logging method, profile method and oh, 10 00:00:50,380 --> 00:00:51,450 look out method. 11 00:00:51,960 --> 00:00:57,380 So first of all, we need to create for these four methods inside student controller. 12 00:00:57,750 --> 00:01:08,640 So if I go back to Ed, go here, let the public function, simply say register. 13 00:01:11,290 --> 00:01:22,900 Next, to create a public function and the method for looking after that, we need public function. 14 00:01:23,260 --> 00:01:29,360 Litsa profile and the final matter we want inside is student control. 15 00:01:29,380 --> 00:01:33,340 Is that public function logout. 16 00:01:34,540 --> 00:01:38,830 So these are the four methods we are creating inside student controller. 17 00:01:39,160 --> 00:01:41,260 Let's add one line, single command. 18 00:01:41,710 --> 00:01:42,400 This is. 19 00:01:44,970 --> 00:01:46,350 Registry, Ippei. 20 00:01:50,970 --> 00:01:52,320 Logging API. 21 00:01:55,670 --> 00:01:57,040 Profile, Filippa. 22 00:02:00,450 --> 00:02:04,860 And finally, we should have the logout epper. 23 00:02:10,070 --> 00:02:18,350 Now, inside all these matters in which methode we want barometer inside our phase one development epis, 24 00:02:18,350 --> 00:02:23,670 we are seeing that in some few months we have passed a request in stands. 25 00:02:24,280 --> 00:02:28,790 So inside which methode, we want our request in stands. 26 00:02:30,140 --> 00:02:38,270 So just in case, when we hit this register methode as we know that we need to reduce student by the 27 00:02:38,270 --> 00:02:45,890 help of this method, it means inside this method we will pass body palmettos and those barometer's 28 00:02:45,890 --> 00:02:47,980 contain student information. 29 00:02:48,260 --> 00:02:54,670 So we want the request in stands inside this register method here. 30 00:02:55,610 --> 00:02:58,250 We will create the request instant's. 31 00:03:00,300 --> 00:03:07,710 By the help of this request instance, people access all about input values, getting from body, from 32 00:03:07,710 --> 00:03:13,430 Postman or from Eppy coincides Log-in. 33 00:03:14,280 --> 00:03:18,150 Think about this log-in methode by the Log-in method. 34 00:03:18,510 --> 00:03:25,590 We will pass email address and a password and by the help of this methode from a logged in to Yuzo to 35 00:03:25,590 --> 00:03:27,290 use our setup. 36 00:03:28,440 --> 00:03:36,240 So inside this case also we need requesting stands by the help of this request instance, we can access 37 00:03:36,240 --> 00:03:42,250 the email address and the password that will hit this login method now. 38 00:03:42,270 --> 00:03:46,830 Next we will have profile motherhood and the logout method. 39 00:03:47,370 --> 00:03:53,430 So these two methods like register and login needs not any authentication. 40 00:03:54,550 --> 00:04:00,060 It means while calling all Valentijn string these two methods inside your file. 41 00:04:00,360 --> 00:04:08,580 We don't need to include actually any type of authentication, but in case of profile and logout, we 42 00:04:08,580 --> 00:04:13,050 need to wrap inside a Middleville that is Santa Middleville. 43 00:04:13,290 --> 00:04:15,800 So we will discuss inside next video. 44 00:04:16,140 --> 00:04:18,470 It means inside string controller. 45 00:04:18,660 --> 00:04:26,930 We have two matters which which don't need any authentication, but these two methods need authentication. 46 00:04:27,810 --> 00:04:33,850 Now, if you go inside that controller, inside this second controller, we need methodically, Lucifer, 47 00:04:34,250 --> 00:04:38,850 create product list, single product and Prosek delete. 48 00:04:39,300 --> 00:04:43,140 So back to Controller Lizzi. 49 00:04:43,150 --> 00:04:57,080 That public function created by the help of this method will create our Protect Talagi public function. 50 00:04:57,600 --> 00:04:59,700 Here we have list Prozac. 51 00:04:59,940 --> 00:05:05,160 So this is list method by the help of this list method from a list. 52 00:05:05,370 --> 00:05:13,470 All the Prozac's now next public function free will have a single method. 53 00:05:14,520 --> 00:05:22,290 By the help of the single Methode, we will display a single present information and finally we need 54 00:05:22,630 --> 00:05:25,770 public function delete. 55 00:05:26,550 --> 00:05:30,540 So by the help of this delete method, we will delete Prozac. 56 00:05:30,990 --> 00:05:34,140 So let's add a suffix as Prozac. 57 00:05:35,100 --> 00:05:40,770 So I will copy list Prozac, single Prozac and delete Prozac. 58 00:05:41,970 --> 00:05:43,320 Let's add one more line. 59 00:05:43,320 --> 00:05:43,850 Come in. 60 00:05:44,460 --> 00:05:48,330 This is all about create Prozac epi. 61 00:05:51,430 --> 00:05:53,350 List, Prosek, Epper. 62 00:05:58,120 --> 00:06:09,460 Single project Epper, and here we have the lead project EPA now inside this second to inside each motherhood's. 63 00:06:10,240 --> 00:06:14,400 So from these methods will we won't request instance. 64 00:06:15,400 --> 00:06:17,200 So think about this create project. 65 00:06:17,650 --> 00:06:23,190 When we call this methode, it means by the help of this method we are going to create project. 66 00:06:24,070 --> 00:06:29,090 So obviously we will pass barometer's to create a project inside body. 67 00:06:29,560 --> 00:06:33,840 So what I will do simply we will pass request instance here. 68 00:06:34,450 --> 00:06:43,870 So request class and we to create request in stands by the help of this request instance will read the 69 00:06:43,870 --> 00:06:45,350 body barometer's. 70 00:06:46,030 --> 00:06:48,390 Now here we have list Bozak. 71 00:06:48,700 --> 00:06:54,520 So in this case we don't need any parameter, only we need authentication. 72 00:06:55,060 --> 00:06:57,010 Here we have single Prozac. 73 00:06:57,790 --> 00:07:03,570 So while displaying any specific product information, we need our project ID. 74 00:07:03,940 --> 00:07:13,300 So inside this case we need project ID for this delete project API also to delete any specific project. 75 00:07:13,600 --> 00:07:15,520 We need Project ID. 76 00:07:16,660 --> 00:07:22,330 So all the necessary parameters, we are passed inside all these methods. 77 00:07:22,810 --> 00:07:30,760 And one most important thing that inside this controller, as we have seen, that two methods don't 78 00:07:30,760 --> 00:07:36,190 need any authentication, but these two methods need authentication. 79 00:07:36,640 --> 00:07:40,910 Pasaquan, Anthoula inside Brozak control each methods. 80 00:07:40,930 --> 00:07:43,690 What we have created needs authentication. 81 00:07:44,080 --> 00:07:46,720 It means when we use any method. 82 00:07:49,190 --> 00:07:57,400 The user login must be needed because to process any request which associated these matters needs to 83 00:07:57,410 --> 00:07:57,790 be done. 84 00:07:58,400 --> 00:08:05,160 So we will see in the next video that how can we create episodes inside that appear out front? 85 00:08:05,260 --> 00:08:06,350 Just a few doubts. 86 00:08:06,680 --> 00:08:09,710 That means that will run without any authentication. 87 00:08:09,950 --> 00:08:16,670 And few matters which will use a Middleville rechecks that are token is valid or not. 88 00:08:16,670 --> 00:08:21,380 Let's say it going to check authentication so successfully. 89 00:08:21,380 --> 00:08:27,700 Guys, inside this video now we have configured all the needed methods to create our epis inside this 90 00:08:27,770 --> 00:08:31,730 student controller as well as inside Prusak controller. 91 00:08:32,060 --> 00:08:39,830 In the next video, who will walk inside Epidaurus to configure our episodes so far this session. 92 00:08:39,830 --> 00:08:42,040 Guys, thanks for watching and have a great day. 9124

Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.