Skip to main content

Simple Ajax Codeigniter CRUD application in Hindi Part - 3



"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

Comments

Popular posts from this blog

Codeigniter tutorial in Hindi (Introduction)

Codeigniter is an open-source PHP framework that is widely used for creating small/large scale web applications. It is based on the most popular design architecture called MVC. It comes with built-in reusable libraries which enhances the efficiency of a developer while developing an application. MVC design architecture There are many design architecture in programming language and the most popular is MVC. If your application is based on MVC, that simply means, your application has three design layers.  M => Model V  => View C => Controller Model => In a model, we do all the database related operations like fetch or select the data from a database, update a record in the database or delete a record from the database.     View => In a view, we write all the stuff like HTML, CSS, and Jquery. So, we can say the frontend we see in a browser is a view. Controller => Well, In the controller, we write our business logic, it works as...

Codeigniter tutorial in Hindi (Libraries)

"Codeigniter 3 tutorial step by step in Hindi" is a video series for beginners who want to learn the Codeigniter framework from scratch. This video series is perfect for the beginners who want to learn from scratch, during the video series I will cover most of the topics of Codeigniter framework. Topic:- Codeigniter has two types of facilities that can help in the development of the application these are Libraries and Helpers. All the CodeIgniter libraries and helpers are placed in the system folder.