And here I'm going to take this home, which is the name of my function, and I'm going to come here,
I'm going to say if you put sludge as you ever saw, you are going to create you are going to go you
will go to the Wellcome controller and the welcome will create the false function, go to the heart
function like this.
And if a conviction against the I have written for you and instead of to have instead of having all
this function in your words here, you can organize, you can organize your roots like this and that
you would get the same thing.
This is the importance of the controller.
And if I go back, for example, here, and if I put slash like this, let us make first of all, yes,
I want to say, for example, here and here, we have slash.
In the.
I'm going to say, for example, authorities say, for example, she home like this, and here I'm going
to say home.
Presenter.
And I'm going to get a lot of different pitch, I think that it is very simple and very easy and this
is not importance closets.
I use my pages and then here we are going to be creating a new controller.
You can create a lot of concern as well, because we have to create a welcome home only for the speech
and for these other pages.
We are going to create a new controller and we are going to call this controller and Page's controller
because we are going to be using its results are to make.
Lake controller.
And hearing us say is controller and Algar press onto us see here.
Yes, we're going to get the pages controller here and the words Regla to let us come back a Weybridge
in the hearing to say.
So they just remove this.
Yes, and you can choose me, and if you have pages here and instead of having all this here, you're
going to get all these Regla come to the pages here and then we are going to let us make a Web page.
And here we are going to say, if you go to the pages controller.
And then creates a and a function, you've got a lame, dysfunctional hum like this, and I'm going
to cut all these.
And I'm going to come to the country, I'm going to say function home, and here we are going to declare
a function, public, public function.
And here we're going to return our page DOT index, our index page like this.
I think that is very simple and I'm that big.
Also, I'm going to say, if you put about just remove all this.
Bring it in your PJs control controller functions, your.
Function and hearing about yes, and you going to return the PGS, that's about you speech and if you
put slash services.
Remove all this, we don't want it's solid, this country, to repeat control controller here.
Public function.
And here to say services, we don't forget the function we've just laid for services and leaders make
here and here we go to customers, we're going to say if you put slash emotes, go to the pages controller,
independent controller, you're going to create about function.
So you are not obliged to put the same name here.
You can choose.
You can customize is.
So this is just an example.
And if you put slash services, go to the pages controller and then create a services page services
function here.
So let us save and make sure you have all this year, instead of having all these functions here, you
should see that our Rochfort is real organized and let us make sure and if we put Slash and there we're
going to get the next page, which is will come to the larger seven point X project and this year going
see, for example, about Lattis.
And here we going to state services services and the regular guest will come to the services pages page,
very simple and very clear.
And then we can also use the surfing free dynamic routes.
For example, I'm going to add, for example, a Enel parameter here.
You're unclassy mean.
Unclassy mean.
I'm going to say, Heidi.
If it were to get this inside, I have to take these two parameters and I have to bring it in inside
of my services function here, I got to say name what I put it, these Steggles parameter in here,
I'm going to say return to the pages and I can sing.
I can say, for example, written and pages.
And it is worse for communities across their return.
This message, for example, return and we each will take property.
Excuse me.
Welcome.
My name is sir.
My name is.
Nien.
And.
In my idee.
Is like this idea, and I'm going to close my H1.
Take property, here is a property send currently in, and I'm going to save and if I make your services,
if I say services, my name is Westing.
Clearly the idea is.
That is and I'm going to press on her, as you can see, I'm going to get all this by using the control.
We can also use the dynamic routes, as you can see, and then it is very simple and very easy, so
I can make it my default speech.
So let us remove this.
And I think that was very simple, very easy to learn about the controllers.
Then we are going to continue through the next session.
Goodbye.