Hello, friend.
Welcome back.
In a previous video, we have created one of the base as the editor artist and here we load our form
right.
And also define our idee.
That means aspecific requested idy all the data all down is visible.
So now to do if you click on the update.
That means if you want to change that fast, name the last name and the installment.
And then if you click on the update then it should be updated.
So when it will be updated, that means you will be just installed this data again.
Right.
So Forte's 2.0, I have already defined this part.
If you go to our view and the view, if you go to our musician form this function in the function,
what exactly did they have already discussed about the things we do here?
I created one of the object and then into this position I defined the condition, first of all, which
is posted on R20 should be post a point which will be as a valid then it will save this data into our
database table.
Right.
So that is actually our comet with this comet.
I just simply defined as the true.
That means it shall be saved, this data.
And after that I just simply define when it should be that I will be safe, then it will be returned
our index function.
Right.
So I have already discussed about the things we do.
So now we have to do the same things because of all here.
You can see in our edit artist, first of all, here I define two things.
First of all, here is will be Lord, our form.
That means the musician form and indeed the musician form.
I our all that out is aspecific idy data for the regions here.
I take one of the variable and is variable from our musicians table.
I get all that our object with our ID right.
So now I want to do, I want to actually define the same things because here we have to insert this
data again.
So here I want to update it.
So if you want to do that work, it should be just like them better.
I just simply copied, OK, I just simply copied.
And now after this so after this, I want to do in particular that position.
I just simply paste it.
OK, so here I think you already know about it.
So first of all, it's filled with checks.
So here I have the final of the update button in our edit that we create.
At least if we go to that elitist here, you can see the result of the method as a post method.
So have already defined this post.
Methods are now first of all, it's we check is posted or not, and then in our forms and musician musician
form.
So I have already created this class in our model into the model.
So not model that is actually the form in the form.
I have already defined this class as a musician from class right into this musician from class.
I have already loaded all that our filled.
So now here I defined this.
So that is our model and that is our request that we are post.
And then I just simply define if it's valid then it shall be saved.
This data.
But here, want this now we have to do we have to save this data with a specific ID.
Right.
So here if you want to save this data, that means this data is what I did data.
So I have to do I have to save this data with this on any data that means the requested data.
So if you want to save this data with a specific ID for the results in our, you know, our function,
that means in our function request, I have already defined our data as an artist.
Idy So now also we have to do we have to pass it before you can see into the submission form area.
I have already loaded our all that is specific requested IRI data, so now we have to also define these
things.
So here we have to define that things in our form.
That means our disposition form into the request post and the request post area.
We have to define our this all the data that is specific, all the data.
So here I defining it with the artist info.
So here you have to pass it right front and after that it should be just like the same.
If it is actually valid then it should be saved, this data.
So I just simply say this about with the comet and our true OK and when should we save this data.
That means after when you update it then I want to do I want to reject it to our album.
Leave Space for the album space.
I have already defined another function if you go.
Here you can see I have already defined another function as the album list, so here I want to do Undeposited.
So into the album list.
Here I have defined the request and our artist I.D. so shall be simply the key to our D.C. area.
So now I want to do here I want to define the return and into the deep down, I want to pass a pointer
to be perfectly safe.
This data also will dictate dictator album list functionality with this request and also that is our
ID.
So it is a specific ID it be returned and that's all you have to do.
I think it should be very much clear to you.
So it be just like that.
Same here only we have to do we have to pass our existing data.
That means our existing aspecific ID data.
Right.
So that's all.
That's all you have to do.
Now, let's check this out.
If you know Gleek as a Savol, I just click on the Save All.
So first of all, I want to check it.
Everything is perfect.
Now go here, go to our home again.
Go to the Calgarian, because the easy to sell will dictate to our this album live space with it.
Right.
So for the originals here, you can see I just simply defined as the album list, which will be redacted
and with this request and also it's rejected with our specific idea.
Let's check this out.
I want to do want to edit it, click on the edit.
So I want to edit our first name as a one last name as a Colombian one and also sorry, one and also
one.
OK, now click on the update.
Yes.
Now, friend.
Now our artist is updated.
That means Kazue first name one is updated.
Our last name is updated or in this domain name is also updated and updated by default.
You can see it's not redacted to which is now redacted to our editor is faced with the idea.
I think it should be very much clear to you.
So when it will be safe then I just simply defined as a return album list function into the album list
function.
I have already defined our pace.
If you go our album list into the album list place, you can see I have defined our album list based
upon the album list and here also I define and other things which will be redacted with these secrets
that been sequestered.
All the data with our IDs, for the reasons you can see, it's not showing us it.
It is Tamalpais and with our ID now if you go again our Jackson.
So now here I it.
So that is the idea.
The two.
I want to update it because the update now can see only our first name is updated and after that is
selected to our edit artist with a specific idea.
So how much easier it is.
I think every line it should be very clear to you because we already know that mean basic things friend.
So if you already know about that basic, you can see everything.
It should be very much easy to you because of all everything is the same here.
I only want to do I want to update our existing this data with data I get with our specific ID that
this is our primary key here.
I define already requested.
I need these two crystalised means actually this that is actually requested I right.
So here only we have to define that things in our investment area there solitaires all you have to do.
So that's how you can actually update it.
So friend here we successfully update our artist.
So here we successfully, now we can change our artist name.
So that is our second name.
That means the last name and then instalment.
So now they have also another option for the album.
So if you want to update this album, how can do that work?
In our next video, I will show you that things with the live example.
So thanks for watching.
I'll see you the next video.