1. CodeIgniter Installation and Basic Structure
CodeIgniter is a powerful MVC (Model-View-Controller) framework for PHP web development. It is highly recommended to install it using Composer.
1.1. Installation using Composer
Open your Terminal or Command Prompt to create a CodeIgniter project (based on CodeIgniter 4).
# Create the project directory
composer create-project codeigniter4/appstarter my-ci-project
cd my-ci-project
# Run with built-in server (development environment)
php spark serve
1.2. Basic Folder Structure
It's important to understand the folder structure created after installation. The app/ folder is the primary area where developers write code.
app/Controllers: Controller files that handle requests.app/Models: Model files that interact with the database.app/Views: View files displayed to the user.app/Config: Configuration files (routing, database, etc.).