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 cool.
2
So now that we are here let's open Lavell project and let's start exploring.
3
Right now it doesn't matter if you're in a windows or in a Mac computer everything should be the same
4
for now on a right if it's different.
5
I would let you know so Windows and Mac users.
6
Let's do it.
7
All right.
8
So let's open our BHB store and whatever idea you are using your editor if you use and sublime that's
9
OK.
10
Or I know that I will be using the HP story just because it just provides a very user friendly environment
11
for HP and Meribel together.
12
All right.
13
So I'm going to open up my HD docs project so if you can click here and then just look for your project
14
users.
15
Just type in the address where your project is or you look for it.
16
It would give you a big for that like this.
17
And if you own a Windows machine you should be going to see zap in the docs and all that.
18
Or.
19
Just because I'm in a Mac computer right now I'm going to go to where that is so applications for me
20
.
21
And you can type it in here as well.
22
Right.
23
I'm just going taking the long way to do it.
24
And there we go.
25
All right.
26
I'm just going to close so this one thing that I want to do before I start guys is just change his white
27
background on now used to coding in this.
28
I don't know about you but oh my courses I do it and I'm like background so I'm pretty sure that you're
29
also used to it by now.
30
So let's do preferences and let's go to parents theme dark law and apply.
31
Right then I'm going to go to Ed. general whoops and it's see colors and funds.
32
Genera actually.
33
And then here and then I look for mono or chi or not chi whatever however you pronounce it apply.
34
OK.
35
Just going to give is a very similar look to what we had in sublime.
36
All right.
37
Pretty cool.
38
So now the first thing that you are going to be noticing here is that knowing you every time you you
39
know you learn about framework you know it can be overwhelming for us because you see a lot of files
40
that you don't understand.
41
All right.
42
So I'm not going to explain every little detail here because there are some advanced subjects that we
43
are not going to go through but I'm going to give you the fundamentals of it.
44
I on this chapter we are going to be learning about so I'm going to go right to that.
45
But you can see here everything is going to be included most.
46
Most of everything that we are going to be doing is going to be inside this app folder.
47
Right.
48
We're going to have controllers who are going to have models views et cetera are actually views are
49
here resources.
50
All right.
51
But anyway so route's Where are routes.
52
Well route's is inside this HTP folder.
53
All right.
54
And then you can see the routes file right here.
55
Just double click it.
56
And now here it is.
57
All right.
58
So very simple.
59
This is called a group aroud group array and basically groups.
60
Everything is secure.
61
Everything in a kind of a container.
62
All right.
63
So this is a call they made aware and this is a security feature for Claribel.
64
Every time you see middleware is because you are securing something there.
65
So we're saying now that everything in this web in this rogue group is going to be available for the
66
web.
67
All right.
68
That's what we are saying here now don't worry about too much of this we're going to cover this later
69
on.
70
I just want you to know how this works.
71
So routes the first thing that you are going to be noticing here is that we have this class here called
72
route.
73
As you can see is a static method that we have after that which is get see that.
74
So we are using the route the class name plus it to call and see which means it's a static method and
75
then we have a couple of parameters we first have a parameter here to actually let us know where.
76
All right.
77
Well we have to tap in that you are able to get somewhere.
78
So right now we type when we go to the root directory of this application this is going to give us a
79
view where I remember what I tell you about views views is the representation they H.T. a mail over
80
application that's where our contact pages will be or in the case of BHP whatever.
81
Everything that you see on the browser would be of view.
82
So if I go to let's go to the beginning of this application to the publication that we created which
83
is a CMS that dev.
84
Right.
85
So I hope you see this is a view right here this is a welcome view.
86
So let's go back as you can see here says you know if you if you go to the root directory you're going
87
to get a welcome view.
88
Now let me show you something if I type in let's say example here.
89
All right.
90
Now if I go to the browser and do this for example I'm going to get a sense thing again too because
91
I just told Gravelle that when the user types in that sample I want you to take him to the view welcome
92
.
93
All right.
94
So let's try this again now if you notice I'm not saving anything in my editor in BHB so you don't have
95
to say they will save it automatically for you.
96
Now if I go and try this again after I take it off you're going to see that I get nofollow an exception
97
.
98
All right so first parameter is where you want to go.
99
Second parameter could be many different things and even even even Hastur parameters.
100
But we're going to look at that later.
101
Right now he has a closure function.
102
This is as a second parameter and this closure function right responsible to do other things in this
103
case is returning a view a welcome view but if we wanted to you can select that impressed good control
104
forward slash and you were calm in that how you can return.
105
You.
106
OK.
107
I didn't save anything just does it automatically.
108
Amy Fyke go to the root directory Now.
109
You can see this is how you this is super cool right.
110
Remember that before for us to do something like that I have to create a folder called indexed up BHB
111
and Puzo ph being there and Yankel high you for for us to do that.
112
We don't have to create any Fouchier for us to do whatever we want in there.
113
You are out.
114
We can't even pass IDs and parameters see it through.
115
Through this here and take it you know take it in here return it and if we want to and we're going to
116
do that later.
117
But as you can see we can write whatever we want and then we can do this too.
118
Watch this.
119
We can say admin polls.
120
All right.
121
When once we type this we are able to do this.
122
Watch this admin is here.
123
Or something like that.
124
So if we go back and we do that and we say admin posts and other things here you see that and we can
125
make this as long as we want to.
126
All right so that's the first thing that you should know about routes.
127
Now if I go back to the room there is nothing there.
128
All right let's go and fix this again real quick and take that off.
129
Take these off.
130
Now we see that we are returning this view here.
131
Right.
132
We're going to explore this a little bit later where they are how we access them how we edit them but
133
right now just focus on routes around the next election we're going to continue with routes because
134
it's super exciting and super easy to do once you know how to do it right.
135
Anyway thank you so much for watching and 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.