Getting Started with CodeIgniter 4 Database Seeding: A Beginner Guide

Database seeding is a way of populating a database with test data that can be used for initial testing to explore the various functions of your application instead of having to create test users one by one every time you want to test something new.

In CodeIgniter 4 database seeding feature is available.

This post guides you through the creation of database seeding and running single or multiple seeding files in CodeIgniter 4.

Getting Started with CodeIgniter 4 Database Seeding: A Beginner Guide

Read more

How to Send GET and POST cURL request in CodeIgniter 4

The CURLRequest class that comes pre-installed in Codeigniter 4 makes it easy to send cURL request from the application.

It allows you to make requests via GET, POST, PUT, and other methods on various endpoints.

With this blog post, you will be able to understand about sending cURL GET and POST request using CURLRequest Class in CodeIgniter 4 and implement it in your project.

How to Send GET and POST cURL request in CodeIgniter 4

Read more

CodeIgniter 4 Helper Functions: Creating and Harnessing Their Power

CodeIgniter 4 allows creating helper files to store collection of reusable functions. Require loading the helper before using that helper file function.

Helper functions offer numerous advantages. They encapsulate repetitive or complex code into reusable functions, promoting code reusability and maintainability. By abstracting common functionality into helper functions, developers can write cleaner and more concise code, enhancing the overall efficiency of their development workflow.

Files are stored in app/Helpers/ folder.

In this tutorial, I show how you can create helper functions and use them in the controller and view in CodeIgniter 4.

CodeIgniter 4 Helper Functions: Creating and Harnessing Their Power

Read more