Hello, friend, welcome back.
In a previous video, we successfully display our portfolio in our home base, right?
So right now I want to do I want to add this portfolio based upon this portfolio.
That is also another one as a portfolio.
So here I want to do I want to load our this template.
So that is our template, one of the page.
So here I want to load it so we can do that work.
In this video, I will show you that things with a live example.
So for doing this, first of all, we have to do we have to add one up that improved for this one.
So here we have to add that link.
So that is in our funding.
So if you go to project so right now that is of Holmblad, we don't need this about controller will
be needed.
And I removed the sidebar.
I remove it.
OK, there is our index so that the index.
So also we don't need this to remove it.
So now in our home base, if you go to our view into The View right now, we want to work in our home
for the interests and the funding.
If you go to that or to the body into the body here, you can see they have already separated, traded
our futer header and the slider.
So if you open that our header into the header, you can see that is all that our men'll right there
is a Clurman SEAL, the main area.
There is a portfolio.
So first of all, I don't want to create of the net out for this one.
So here I remove it and I want to clear that out.
I think you already know about it as out.
So it will be as I want to create, I just name it as a portfolio, OK, with the same name and name
it on the road as a portfolio.
Perfect.
So now we have to do we have to create this out.
Right.
So now go to a web brought here after this, after this home.
I better copy it.
I want to take another one that will be as a portfolio throughout.
OK, that will be the portfolio pays it out
based out.
Perfect.
So here I am to done to better copy it like a copy.
One of the things from here, it's always a great method and then I name it as the same name it.
That is actually a name it as a portfolio.
So I name it as a portfolio.
It's always a portfolio and then the portfolio.
Right.
And also you can create some other controller for this one.
Right now I don't want to create any one controller also in all about controller.
I want to play one of the Methode as a portfolio and so far the symbolism using it, but better to create
one another controller.
And here for the portfolio, all the things you have to add it into this controller area.
So right now I'm using that about control also into the about controller and to create this method that
will be as a portfolio so that I make it as a capital portfolio.
So this matter, I have to create an all about controller, go to our about controller.
So here I want to do want to create it as a public and then function and then our portfolio method.
Right.
And how much is it?
Is it.
I think you enjoy it very much so.
That is our portfolio method.
So the portfolio method, what exactly we have to do, we have to return one of the few pieces.
Right.
That means when any user in particular this portfolio, this will be one of the few.
But so for the reasons here, I want to do I want to create what the view is better.
So that is a body.
That is a layout.
And there is our view into the view area.
I want to better create of the folder to create the folder.
So the view folder here and the folder and name it as the pages.
So there will be other pages.
So into the pages folder, I want to create the piece and I just name it as a portfolio.
OK, that will be one of the portfolio portfolio blade, not PSP.
So this step up on the page, I simply created a friend.
So now to turn to add this portfolio page, that means here it will be as written and then view.
So here it will be as you know.
Ah which position is will be in our pages.
That means I have created the view into the viewing area happy from the pages and that is a club portfolio
right now.
I name it the pages pages and then our final name as a portfolio.
Portfolio, perfect.
So right now here, what exactly you have to do, so we have to actually get this data right.
So I have already did this work in our webroot.
You can see it on the web now before for our home page.
I get all the data with the images, with our model.
So right now we recopy it through silver just like the same here.
I take one of the variables with our model to make the till you add this model.
So here I didn't add this model, so you have to use it.
So our model name, our model name is a multi picture.
So that will be our model and.
Right.
I have already created this model for our multi majors.
So that is our model, the multiplex.
Right.
So make sure you add it.
So now with this, we can actually use it.
So now with this multiple picture, I get all the data and we don't view our pages and portfolio page.
So now if you want to parse this all data from your database and if you want to pass it, you have to
pass it with the compact.
Right.
So now with this compact, I want to pass this data.
That means you get all the data from all of which table is get all the data from what this table that
is all that images, data here.
I get it.
And take the things with this variable.
And now I pass every data in our portfolio.
So that is our portfolio page.
So that in the portfolio page I want to do it will be like as if you go to our.
I want to do that is actually I have created as a monster.
So that is a monster one.
Right.
And if you go to our home, into the home here, you can see that is a cloud extended.
So I copy it.
So which will be extended all loadmaster home.
And also here we have to end this section, the and and the section.
So that will be the end section.
Right.
So that is our end section.
So now if you click as a Savol, if you look at the Savol and now it should be worked like a refresh.
And now go to our portfolio.
Yes, you can see it's not perfectly getting our three things, it's not getting our heads, it's not
getting our slider is not getting our these footer right.
So here we have to do I don't want to actually load our this slider to our slider all they will be visible
in our home base.
But here you can see I already extended our layout master.
So if you go to our layout master and the master home and here can include that baldie header, I include
that our slider and also included our body in the footer.
So for the reasons it's actually getting our three things that the header slider and the footer, you
can see the header slider and the footer.
So I only want to do our in our home based only our home base, our D slider only visible.
OK, not that our master one surefootedness here but I got it, I got it.
From this position I want to visible only slider in our home.
That means there is our home.
So after that monster here I want to do and load it.
OK, so now this slider only visible in our home base and after that there is our home contents section.
If you're looking at the Savol now, if you refresh, you can see into the master.
They have only two options.
The header under the clear footer.
Right.
But if you go to our home, if you go to home, please enter now, because if it's not successfully
getting our this slider, so only slider is visible in our home base.
OK, so that is our portfolio base into the portfolio base.
That is only header and footer.
So now into the body area.
That means in our this that is a click on that is our main part.
That is our main dynamic part right here.
I want to do want to load our template.
If you go to our team into the team, that is a portfolio, that is if you know OpenNet.
So that is our portfolio, right, so here I only want to take out this part.
So after that header, after the pivot from this position and before that Futer, I want to get this
part.
So you want to get this part that is our portfolio esteemable.
So right now, I want to do and open it with our editor.
So into this Ed here, I don't need this I don't need this header part, and that is our main idea.
You can see that is the main editor after that main idea.
That is our main part.
So that is our portfolio section.
So from here, I copy everything OK?
I copy everything from this position and can see there has been made me no.
So now from to this position I can copy it.
So that is our main part.
That will be our SO and I copy it.
And now the portfolio here I passed it friend here it will be just like the same here.
We don't need this.
I only want to add need one.
So before I remove everything I only want to take one.
OK, so that it will take one side, it will be perfect.
So that is the main part here.
I want to make it dynamic so you don't need this.
I remove it.
So I have already get all that our data and I take the things with this variable.
So that is our variable.
Redfearn and now we can actually access it in our portfolio page.
So here we have to do the same as our home page.
So here I only want to do I want to add on the forehead that the foreach and also you have to end this
for each.
So that will be the end for each and for each.
Right.
So then for each year I want to undertake it as I get all already, get all the data and pass it with
those images.
That means with this variable.
So it is variable.
I want to make it as it is.
OK, as images so they step out of the name.
So now with this image on the visible, all that our database them so I movie is be with these images
on the display that I was feeding them or that was filename is uh as again as image.
Right.
That is images.
So now under the indexes of the image and then also here I want to update it, that part that means
that will be our another one.
I updated this part.
OK.
So you don't need this.
That is actually the link.
So you remove it.
And if you don't want to remove you want to add the link, you can remove it from this position.
Perfect.
Now, let's check this out if to save all.
So that is our part.
That is our bottom is visible.
Perfect.
Now, if you click on here and if you go and refresh it.
Yes, you can see friend.
Now, this part is totally dynamic, Leprince.
That is actually our portfolio page and that is a portfolio.
All the portfolios visible, if you are here, is successfully loaded, right.
Is not successfully loaded n all that slider.
Perfect.
So here, how can I build that polygons different.
Now that is actually totally dynamic parts so you can actually manage it from your back end.
OK, so here we successfully complete our portfolio in our next video and to discuss about the contact
base.
And if you go to our template, if you go to that contact in the contact here, you can see from that
is on the location.
I also want to make it as a dynamic that we the location will be dynamic, email will be dynamic, that
we call will be dynamic, and that is on the contact form.
So from here, I want to insert this data in the database and then I want to manage everything from
our back end so we can do that work.
In our next video, I will show you that things with a live example.
So thanks for watching and I'll see you in the next video.