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 Why do you need to pretty print JSON data? Prerequisites Pretty Print JSON Source Code Introduction Here in this example I am going to show you how to pretty print JSON in PHP program. I will use three different kind of JSON inputs to prettify them in the output. I am…

Posted in PHP

Pretty Print JSON In PHP

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 PHP example, I am going to show you how to call external REST APIs in PHP programming. I am not going to build here any new REST API, but I will call or consume those REST APIs which are already available for testing purpose. But if you want to know then you…

Posted in PHP REST

PHP Consume External REST APIs

Introduction Here in this tutorial example, I will show you how to download large file in PHP program. Generally, when you download a file, your file is stored into file system or you load it into memory as a byte array. This is not a problem when you deal with a small file but when…

Posted in File Download PHP

PHP Large File Download in Chunks

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

CodeIgniter 4 REST API Client 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…

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