All language subtitles for 6. Routes part 2

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
eo Esperanto
et Estonian
ee Ewe
fo Faroese
tl Filipino
fi Finnish
fr French
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

Original subtitles

1

All right welcome back my students so now that you know how to use route's a little bit right.

2

It's super easy just to go and create another row right.

3

Let's just create one here.

4

All right.

5

Let's create a couple.

6

All right.

7

So let's say for example when you go to the contact page let's just do about unless she's returned some

8

tests.

9

Of course you're not going to be returning to it you're going to be returning views later.

10

But you know high about Ph.

11

Right.

12

And then they'd say something for contact

13

or something like that.

14

Right.

15

I am contact or whatever.

16

It doesn't really matter and let's just go and visit those pages and see how we can do something they're

17

about to see that.

18

So we know this already.

19

All right.

20

I'm going to show you how to pass parameters through view two views and two whatever you want inside

21

a closure function right here.

22

All right.

23

All right.

24

So let's say for example you create and create another one real quick.

25

Copy this.

26

So let's just write it down because I want you to get used to writing so the route then they get mad

27

it like this.

28

And then the first parameter would a single call for Slash to indicate that we want to go from route

29

.

30

So whatever we put after this.

31

So let's say for example we have a post but let's say it is puls number one and we want to see it.

32

So we're going to put a forward slash and Dand the curly brackets and we can write whatever we want

33

.

34

I just want this to be named ID.

35

All right.

36

So that's going to be the name of our variable that's going to be a variable.

37

Right now is not a variable.

38

This is the way is it tested in this function or this method.

39

All right and then later on it will convert it to a variable.

40

I'll show you right now how he does this.

41

Well now he does this but where it is function then the curly brackets.

42

And then I mean the parentheses and then the curly brackets and then bring it down.

43

Here is what you catch a variable right here.

44

All right.

45

Now I can return it right here if I want to.

46

So returned this is

47

this is PPOs number whatever.

48

I'm just going to concatenate the ID right there at the end.

49

All right.

50

So let's see how we can do this.

51

We see this in the browser.

52

So let's go.

53

So we go to post the forward slash and then whatever number we want to.

54

As you can see says polls number two polls number one thousand if I want to.

55

So you can see how he passes that variable to this closure function right there.

56

All right.

57

So not only that but you can pass multiple variations of multiple parameters if I want to.

58

So if I could if I put another parameter here let's say this is going to be the name.

59

All I have to do is on the closure function put a coma here and put the name here and concatenated here

60

maybe with space or something and then put a variable there.

61

All right.

62

So I can go back to that put a force last year and put whatever name I want that one.

63

That we go.

64

So you can see you can pass multiple parameters

65

to that.

66

And now later on what we're going to be doing is we're going to pass this parameter to views and any

67

other views we're going to be using them.

68

All right.

69

Very simple to do these guys.

70

I mean it's not rocket science it's super easy.

71

All right.

72

So I want you to digest this information.

73

All right.

74

And that we're going to be exploring some more about routes and how we can use them with other things

75

in our application.

76

Thank you so much for watching.

77

I'll see you in the next lecture

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