How to

CodeIgniter4 – API Development using jwt

Overview Introduction Installation The Application Page About PHP Spark CLI Migration Setup Database Create Migration Run Migration Rollback Migration  Controller Create Controller Model Create Model Routes Create Routes Methods CreateEmployee Method ListEmployee Method   Introduction In this tutorial, we will be creating a REST API using CodeIgniter on our Mac machine. We will be using Composer …

CodeIgniter4 – API Development using jwt Read More »

CodeIgniter4 Todo Blog – Overview

Download Framework and Admin Theme  Controllers & Routes Settings Create Application Migration Working with Migration Configure Application Models Create & Seed User Data Todo Manager – Login Page Layout Todo Manager – Register Page Layout Todo Manager – Validation Registration Form Data Todo Manager – Save Register User Data Todo Manager – Login Validation Todo …

CodeIgniter4 Todo Blog – Overview Read More »

Codeigniter 4 – How to Pass value from controller to view

Passing a value from a Controller can be done in 3 ways: Using an array variable Using the Array function Using the Compact function Sample 1 – Using an array variable Controller – App/Controllers/Site.php Controllers > Site.php public function index() { $data = array( "name" => "Online Tutorial", "author" => "Mj Octavio", "email" => "support@programm3r.com" …

Codeigniter 4 – How to Pass value from controller to view Read More »

CodeIgniter Introduction & Basics Part 3 – Connecting to Database

Assumption This tutorial is for Mac machines although it can be similar to Windows most of the content is dedicated for Mac users. You already have installed MAMP app to use MySQL Server. Overview Step 1 – Create a Database Step 2 – Connect to Database Step 3 – Create a Table Step 4 – …

CodeIgniter Introduction & Basics Part 3 – Connecting to Database Read More »

CodeIgniter Introduction & Basics Part 2 – Create First Program

Create First Program Based on our previous activity, we have created a new Route and Function called aboutUs inside the Site Controller. Now, let’s try to run our server and see how our web app should look like. Type in; php spark serve Then, open our localhost in our browser. And add our new route …

CodeIgniter Introduction & Basics Part 2 – Create First Program Read More »

CodeIgniter Introduction & Basics Part 1 – Getting Started

Overview Introduction Installation Understand the Application Default Landing Page About PHP Spark CLI Introduction In this tutorial, we will be creating a REST API using CodeIgniter on our Mac machine. We will be using Composer to create our project. If you have not installed yet a composer, you can check my other blog “How to install composer …

CodeIgniter Introduction & Basics Part 1 – Getting Started Read More »