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 ( get_instance() )

"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 get_insance() method. In Codeigniter custom libraries or custom helpers, you will not be able to access Codeigniter resources using $this super object. For this situation, we use &get_insance() and it returns a reference of the super object Syntax $CI = & get_insance(); Now we are able to access Codeigniter resources the way given below:- $CI→load→library(''yourLibraryName'); $CI→yourLibraryName→yourMethod()

Codeigniter tutorial in Hindi (Helpers)

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

Codeigniter tutorial in Hindi (Directory Structure)

Codeigniter Directory Structure If you want to learn a framework you first have to understand the directory structure of a framework, so I've attached a screenshot above.    When you'll download the footprint of the Codeigniter framework from the Codeigniter official website, you will see the directory structure as shown in the above image. Because it has a very small footprint something around 2.6 MB, it is a very fast and stable framework. If you see the screenshot, you will see 4 folders. And each folder has some subdirectories. Now let me explain these directories. application:- This is the folder where we mostly write our business logic. It consists of models, views, controllers, config, and other important stuff. Overall, all your code will be placed under the application directory.       system:-  This is the folder where you will see all the core files of the Codeigniter framework. It is highly advisable to don't make c...