Codeigniter 4 Frontend and Backend In this tutorial I am going to give you an idea how to build frontend and backend functionalities separately so that the future maintenance would be easier. Frontend generally accessed by the end users of the websites whereas, backend is used by mainly admin users who manage different functionalities of…

Posted in Codeigniter

Design Of Frontend And Backend In CodeIgniter 4

Codeigniter 4 CRUD In this tutorial I am going to show how to build CRUD (Create Read Update Delete) application using Codeigniter 4 and MySQL database using basic AJAX (Asynchronous JavaScript and XML) technique. I won’t use AJAX technique for all four operations, i.e., fetching (Read), saving (Create), updating and deleting. Out of these four…

Posted in Codeigniter

Codeigniter 4 MySQL AJAX CRUD Example

Table of Contents Introduction Prerequisites Project Directory MySQL Table Database Configuration Route Configuration Model Controller Library Testing CodeIgniter 4 REST JWT Source Code Introduction In this example I will show you how to use JWT (JSON Web Token) in CodeIgniter 4 REST API for authenticating/authorizing a user when he/she is trying to access REST API….

Posted in Codeigniter

CodeIgniter 4 REST API JWT Authentication

Table of Contents Introduction Prerequisites CRUD Application Using CodeIngiter 4 and MongoBD MongoDB Config MongoDB Library Model Class Controller Class Views List Records Style Create Record Update Record Route Config Testing CodeIgniter 4 MongoDB CRUD Example Source Code Introduction In this example I am going to build CodeIgniter 4 MongoDB CRUD example. CRUD is an…

Posted in Codeigniter MongoDB

CodeIgniter 4 MongoDB CRUD Example

Multiple Rows Deletion Here I am going to build an example on how to select multiple rows from HTML table and delete these multiple selected table rows from MySQL database using CodeIgniter 4 with the help of AJAX technique in jQuery. In this tutorial I am going to fetch all records from the MySQL database…

Posted in Codeigniter

Codeigniter 4 AJAX MySQL Multiple Rows Deletion

Introduction In this example I am going to discuss how to create custom helper functions in CodeIgniter 4. Helpers in CodeIgniter helps you with tasks. Each helper file is simply a collection of functions in a particular category. There are URL Helpers, that assist in creating links, there are Form Helpers that help you create…

Posted in Codeigniter

CodeIgniter 4 Custom Helper Functions

Introduction In this tutorial, I will discuss about how to work with CodeIgniter 4 filters. These filters are controller filters. Controller Filters allow you to perform actions either before or after the controllers execute. Unlike events, you can choose the specific URIs in which the filters will be applied to. Incoming filters may modify the…

Posted in Codeigniter MySQL

CodeIgniter 4 Filters Example

Introduction In this tutorial I will show you how to call or consume external REST APIs in CodeIgniter 4 framework. REST is an acronym that stands for Representational State Transfer. I had shown how to build REST API CRUD Example earlier but here I am going to show an example on CodeIgniter 4 consume REST…

Posted in Codeigniter REST

CodeIgniter 4 Consume External REST APIs

Introduction This tutorial is about CodeIgniter 4 MySQL Login Logout example with MySQL database version 8. I will use CodeIgniter’s session library to store logged in user’s data. The session data get destroyed as soon as user logs out of the application. I am also going to create a custom config to use a key…

Posted in Codeigniter

CodeIgniter 4 MySQL Login Logout Example

Introduction The tutorial, CodeIgniter 4 Generate PDF Report will show you how to fetch data from MySQL database and generate PDF document using CodeIgniter 4 framework. Here I am going to use how to use TCPDF third party library with CodeIgniter 4 framework to put data into pdf document. CodeIgniter framework does not provide any…

Posted in Codeigniter MySQL

CodeIgniter 4 Generate PDF Report

Introduction The tutorial, CodeIgniter 4 Generate HTML Table will show you how to fetch data from MySQL database and generate HTML data using CodeIgniter 4 framework. You generally iterate through a list of records and put them into an HTML table for displaying to end users. But here I am going to show you how…

Posted in Codeigniter MySQL

CodeIgniter 4 Generate HTML Table Data

Introduction In this tutorial I am going to explain how to load third party libraries (or library) in CodeIgniter 4 framework. The third-party libraries are placed under app/ThirdParty folder in CodeIgniter 4 framework. You may need to use third party libraries while you are building applications using CodeIgniter 4 framework. For example, you may want…

Posted in Codeigniter

CodeIgniter 4 Load Third Party Library