"Simple Ajax Codeigniter CRUD application in Hindi (Create, Read, Update, Delete)" is a video series tutorial based on Jquery, Ajax, Codeigniter, MySql and Bootstrap 4 in this video you will learn following concepts.
- How to create a ajax based CRUD application step by step.
- How to use bootstrap & Jquery to create an ajax crud application
Here are the Steps for part 3
======================================================
UPDATE
======================================================
Edit functionality
21) Now in this step we will create a javascript function that will fetch info of a record using ajax in json format. And then we will populate this information in edit dialog form. We will use the same dilaog box that we used to create a record but internal form will be different.
22) Create a method called "getRow" in Car_model.php model to fetch a single record from database. Now In CarModel controller we will create a method called "getCarModel" that will return a prepopulated edit form that we will show in edit popup, here we will create a edit.php view, so please see video carefully.
23) Now we will create a "update" method in "Car_model.php" model that will update a record in database using jquery and ajax.
24) Now we will write a function called "updateModel" in "CarModel" controller that will validate & update a record using "update" method of "Car_model.php" model.
25) After updating a record we will show a success notfication using bootstrap modal like we did in adding a record.
======================================================
Delete
======================================================
Delete Functionality
26) In this step we will create "confirmDeleteModel" javascript function that will first ask you a confirmation before delete using bootstrap modal.
27) In bootstrap confirmation modal there will be a "Yes" button, on clicking this button, will run an ajax request that will delete a record from database, but before this we need write a "deleteModel" method in "CarModel" controller that will be called on ajax call, also we need to define a "delete" method in "Car_model.php" model that will delete a record from database.
If you have any questions, please post your comment and I will try to help you asap. And please don't forget to Like, Subscribe & Share.
My other videos:-
Simple Blog Application in Codeigniter (Video Series)
https://www.youtube.com/watch?v=0RXOkXfjK0w&list=PLRB0wzP8AS_Fn6J_xnkpMCQOOvNBIpN3t
Simple Codeigniter CRUD application in Hindi (Create, Read, Update, Delete)
https://youtu.be/v6LzNJZ_KLU
What is Codeigniter in Hindi
https://www.youtube.com/watch?v=P8V4DfrcV0s
"Codeigniter tutorial for beginners step by step in Hindi 2020" is a video series for beginners who want to learn the Codeigniter framework from scratch. This Codeigniter tutorial video series is perfect for beginners who want to learn from scratch, during the video series I will cover most of the topics of Codeigniter framework. Topic:- In this video I have explained about core classes of the Codeigniter framework, I also explained how you can extend the Controller core class. Here are the steps you need to follow to extend the core class. Step 1) Create a file in the application/core folder and save something like this "MY_Controller.php". Step 2) Now create a class MY_Controller and extend with CI_Controller as we are extending CI_Controller, now you will get all parent properties because of inheritance. Step 3) Now you can create your methods inside this class.
Comments
Post a Comment