Hello, friend, welcome back.
In a previous video I have discussed about that, things with you, how can add up the pace that is
our contact profile page is now successfully loaded right here.
Right now.
I don't have any data in our database.
So now I want to do want to add on another create base for adding our contact address, email address
and the phone number so you can do that work here.
What exactly happened?
We have to create the cloud and here we have to load on the pace.
Right.
So now let's do that work.
So the concept would just like that simple.
And I hope you already know what exactly the things we have to do.
So into the about that index base here, you can see the radar at contacts on the going to create on
the wall as they add contact.
So that will be easy and contacts.
And now we have to create this wall in our webroot, go to our web node and that is our admin contact.
But I copy it here.
I based that will be the admin app contact, OK, does the admin contact.
And now here I want to do that will be the add contact.
I copy it.
So that will be our contact base.
So that will be our name or name will be as a add contact.
Right.
So now in our contact control I want to create the base method as an admin and admin add contacts.
So there is a method I want to create in our contact area and here only we have to do we have to load
one of the page.
Right.
Because when any user, one particular disposition, it will be load one of the contact form base.
So here we have it.
We have to be at least matola in our contact controller, go to our contact controller here, here,
and name it as a public and then function and then our method name.
That is our method.
Perfect.
So now here I only want to do on the return on The View page.
So that will be as a view the IWP.
So it is a view based here I to do.
I have already created that right.
So I have already created the Create Bayes in our admin into the admin that is our contact and resolve
it based on the added, that is our admin and the contact and then our create that.
So now I don't want to simply load this space conference here.
We don't need to do anything that we should do because this button that means when you click this button,
if somebody direct or distort it, should we go to our out area into the crowds?
That is a out.
And also, I have created all the method into the controller on the controller to do the contact controller
who becomes then it will be written view one of the page so that the page will be loaded.
Right.
That is how this page will be loaded onto this page.
It will be just like our home into the home about section.
I have already created the create page.
Right.
So when I copy everything OK, right now I copy everything.
Sorry, I know I copy everything and now I want to do all that.
It is not firebase perfect.
So here we will customize it so that we create a contact that will the contact.
And then also we have to store this data that is our field, that is our contact title or the title
is the address.
So that will be the address
so that this will be actually the text area.
Right.
So we trying to do that will be as a contact address.
I make it as a contact with this one and then that is our another one.
Will we need it for the phone.
But recopied and here I posted.
So that will be the contact email.
OK, that will be the contact email.
That will be the contact form and that will be as a contact address.
Perfect.
So right now we don't need this.
I remove it.
OK, so that is the three feel will be needed was in our database.
You can see have the tree field.
So there is a tree field as address, email and the form.
So now I'm going to update it on that field.
OK, so here that is our first one, so that is our contact email.
So make it as a table.
We as email type OK type will be the email tabun or filename.
I make it as espero database filename or for the name of the email so to do and make it as email acceptant
and then that is our contact form for the phone.
I make it as a form.
OK, that means that is actually our database filename as a form.
So, but I want to want to add it as a form that will be the form.
And also that is our text area.
That is our name.
So I name it as the address better.
So and when I copy this will be as the address.
Right.
I hope you understand that part.
What exactly the things I did on here, so that will be as also there is a placeholder placeholder visible
as a contact form.
OK, that will be the contact form and that will be as a contact email.
That is just the placeholder, right, so perfect, so that's all we have to do.
Now, let's check this out.
OK, so now let's check this out, the technology of this field.
And also we have to run by you for this wonderful post methode.
That is the sort of cocaine.
There is one field that's on field and the other at this field.
Perfect now because I save all.
And now if you go outside as a refresh now because they add contact.
Yes, you can see it's not successfully redacted or displays and also it's not loaded on here.
There is our contact email to the contact form under the contact and this through the database area.
I want to know, insert this all the data right here on the set, all the data security inserted, what
exactly you have to do.
So here you can see here that is there is also the form.
So here we have to clear the road for this online name.
It is restore contact, namely to restore contact.
So that will be our route.
That is our we have to create so not go to our Web browser into the Web.
I copy it.
And that will be as a post.
Right.
Forget it.
That will be the post map.
Right.
Because of all from here, I want to insert this data that is our post.
So now our out name as a user contact.
I copy it and then it will be as easy for contact.
So that will be easy to contact with some the post method and then just name it as a iStore.
OK, administer contact.
And now our contact controller and the creator of the method at the app is to contact.
Perfect.
So now I'm going to create this method in our contact controller and that is our Bulstrode.
Go to our contact controller here.
Here and to do and create it.
OK.
Want to create it, that will be the public and then functions that will be as a function so that it
will function and then our method name as a administer contact.
So here I have to do the added stuff.
And as I told you before, when you work with our post method here, we have to we have to add two things.
We have to add that request.
Right.
And then the request.
So that will be at the request, so make sure you add this part and after that, our discussion will
be just like that, same as for our home, right?
If you go to our comptroller, about comptroller, about comptroller, I have already did the same thing.
So you can see that is actually the same concept.
And also here you can see that is a clean slate.
So right now I copy everything from here.
I don't add any validation to that.
Some of the validation.
I hope you already know about it.
I copy it and I go to our on comptroller here.
I posted a friend here also.
We have to do we have to add our model.
That means I have also created on the model.
So that is our contact model.
So we the contact model I want insert are all that field data for this portion is our database data
and there is also on the carbon.
So also I have added better and copy it.
So here around that is our carbon that eliminates support and the carbon.
So make sure you added and then our all that feel that meets our database filename or database filename
as the address.
OK, so here we are trying to do and that is this to address and then the email make it as email and
then the phone, OK, then the next phone, the email phone and the address.
And that is only the data that we use to determine if we could or create in the you can say also name
it as email.
So first of all, that is actually the email that we disagree is that I see it.
And after that and that is the phone, I will deposit the form.
And after that, that is our address because that is our address.
So no, I don't want to pass that because the data and then the operator that by default, as I told
you, when you actually create on the table by default, this field is created as a filter, that software
that will be our will now.
And also here I load our carbon.
Right.
Perfect.
So that's all.
And after that, to be successfully inserted, then it should be done directly or we shall.
So I have already created one of the index for the contact.
So that is our index out.
Right.
So that is our admin contact.
So now I copy it and wants to be successful in that.
It should be done directly over this admin contact base with some of the success message as a contact
contact inside successful.
And also here, if you go into the admin contact, that is our method as admin contact.
Right.
So if you go to our admin contact, so here I have loaded one of the base.
He can see I have already loaded on the page as a indexed base.
So do the index page.
Make sure you add that message.
You can see that diplomacies option that is our message should be visible.
Right.
So here I pass that same at the success.
So that's all we have to do.
OK, so now let's check this out.
If you click as a save all the save all.
And now if you refresh it.
So no one to turn to absent the name, I mean that you as a or the New York.
OK, name to us and you work and contact phone number I post on the phone number and then so the Hickley
me.
So here I pass the addresses that we have, the address that will visit email and name me to the support
after it is eLearning dot com.
OK, and that would be was a contact phone number and that is our address.
So that's all we have to do.
So now we have to do we have to submit to everything, OK, it should be redacted to our contact in
the space.
Not like as is submit.
Yes, you can see families now successfully in that data as a contact in successful, and that is our
contact.
This is visible email addresses, visible contact form is visible.
So here I have already get this data right.
I have already you can see I have already get this data from our contact table and I view that data
in our index pace.
So I have already done this process that is in the index, please.
I have already displayed all that our details.
That is from here.
I pass it as a contact with this compact in our index base or into the index page I have loaded on the
fridge.
You can see into the fridge.
I laid it loaded with this contact that is all gone.
So it is gone.
I throw that address, I show that email address and also I display that phone number.
Right.
And there is already a direct pardon.
So here, friend, you can see we can successfully inside this data.
So from here you can add this data.
So right now, eddied and the delegates, that will be just like our home.
OK, if you go to the home, you can see there is no evidence that the person.
So that is your task.
OK, so now let's try to do that work.
So make it as a potion, make it completely bocian for this one and also complete the potion.
OK, I hope at that position you should know about it, how they can edit it and how it can be elected.
Right.
So that is your task to make sure you added so good some practice for this.
And if you have any issues, just let me know about it.
I'll be in touch, so don't worry about it.
OK, so now, Fred, we successfully insert that data right now to do and to visible this data in our
template.
And here I am to load one of the contact template and the contact template.
So that will be just like, OK, and here I am to load that dynamic now and double it at that location
email address and the call.
So how can load this contact template that the template in our contact area?
In our next video, I will show you that things with a live example.
So thanks for watching.
I will see you in the next video.