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 (Core classes)

"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.

Simple Codeigniter 4 CRUD Application in Hindi (Introduction & Installation) - Part 1

============================================== Simple Codeigniter 4 CRUD Application in Hindi ============================================== Server Requirements: ------------------------------------ PHP version 7.2 or newer is required, with the *intl* extension and *mbstring* extension installed. Currently supported databases are: ------------------------------------ MySQL (5.1+) via the MySQLi driver PostgreSQL via the Postgre driver SQLite3 via the SQLite3 driver https://codeigniter4.github.io/userguide/intro/requirements.html ------------------------------------- Installation ------------------------------------- 0) You need to install Composer first, if you already installed you can skip this step. 1) Open your working folder, if you are using xammpp you need to open htdocs directory. 2) Now open CMD and go to htdocs folder, and run the composer command given below. composer create-project codeigniter4/appstarter ci4_crud Note: make sure *intl* and *mbstring...