Sending data without reload page. Jquery Ajax.Jquery Aajx CRUD with Codeigniter. This tutorial alos use bootstrap and modal popup. CodeIgniter and Jquery Ajax - Crude select insert update delete retrieve For source code https://goo.gl/znvToz
We will be building a PHP Codeigniter blog application with CRUD functionality. In this video we will install Codeigniter, setup a Pages controller, add views and routing.
Table of Contents:
Introduction
CodeIgniter is a PHP framework, it is good for a small team of programmers (1-2) and you can write very fast applications. Another popular framework is Laravel. There is a special way/pattern to write code the MVC. This article explains the implementation of MVC in CodeIgniter. CodeIgniter is used a lot in countries like India, Indonesia, and this area. In the western world is used for educational projects. The implementation of MVC in CodeIgniter is easy and good for a newbie to understand.
It is a PHP Framework that people use for Educational Apps. A Framework has commands that are a summary of more commands in Vanilla PHP.
It is a pattern that we use in order to manipulate data in some languages like Java, Javascript, PHP e.t.c and it used from some PHP Frameworks like Codeigniter, Laravel e.t.c. MVC it separates the logic layer from the presentation layer.
a) Controller (who is doing the management)
b) View (who presents the data)
c) Model (who speaks with the database, in our case MySQL, and fetches the info).
How MVC works:
The browser speaks with the controller.
Then the Controller looks at the Cache if the info exists. If YES controller uses the View to present it ( HTML + CSS + Bootstrap +JS)
If info does not exist, then Controller speaks with Model, Model with Database and returns the info to Controller, the Controller uses the View to present the info to Browser and updates the cache.
In CodeIgniter, we also use Helpers, Libraries, and all the staff that this framework has. For example, we first must load the Database in order to use it with the specific command or by editing the autoload script.