Afrikaans
Akan
Albanian
Amharic
Arabic
Armenian
Azerbaijani
Basque
Belarusian
Bemba
Bengali
Bihari
Bosnian
Breton
Bulgarian
Cambodian
Catalan
Cebuano
Cherokee
Chichewa
Chinese (Simplified)
Chinese (Traditional)
Corsican
Croatian
Czech
Danish
Dutch
Esperanto
Estonian
Ewe
Faroese
Filipino
Finnish
French
Frisian
Ga
Galician
Georgian
German
Greek
Guarani
Gujarati
Haitian Creole
Hausa
Hawaiian
Hebrew
Hindi
Hmong
Hungarian
Icelandic
Igbo
Indonesian
Interlingua
Irish
Italian
Japanese
Javanese
Kannada
Kazakh
Kinyarwanda
Kirundi
Kongo
Korean
Krio (Sierra Leone)
Kurdish
Kurdish (Soranรฎ)
Kyrgyz
Laothian
Latin
Latvian
Lingala
Lithuanian
Lozi
Luganda
Luo
Luxembourgish
Macedonian
Malagasy
Malay
Malayalam
Maltese
Maori
Marathi
Mauritian Creole
Moldavian
Mongolian
Myanmar (Burmese)
Montenegrin
Nepali
Nigerian Pidgin
Northern Sotho
Norwegian
Norwegian (Nynorsk)
Occitan
Oriya
Oromo
Pashto
Persian
Polish
Portuguese (Brazil)
Portuguese (Portugal)
Punjabi
Quechua
Romanian
Romansh
Runyakitara
Russian
Samoan
Scots Gaelic
Serbian
Serbo-Croatian
Sesotho
Setswana
Seychellois Creole
Shona
Sindhi
Sinhalese
Slovak
Slovenian
Somali
Spanish
Spanish (Latin American)
Sundanese
Swahili
Swedish
Tajik
Tamil
Tatar
Telugu
Thai
Tigrinya
Tonga
Tshiluba
Tumbuka
Turkish
Turkmen
Twi
Uighur
Ukrainian
Urdu
Uzbek
Vietnamese
Welsh
Wolof
Xhosa
Yiddish
Yoruba
Zulu
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.