Advertisement

Google Ad Slot: content-top

Codeigniter Project Structure


When you install CodeIgniter 4, the project structure will look like this:


codeigniter_project/
├── app/ # Your application code (controllers, models, views, config)
├── public/ # Publicly accessible folder (index.php, assets, etc.)
├── system/ # Core CodeIgniter framework files (DO NOT MODIFY)
├── tests/ # PHP unit and feature tests
├── vendor/ # Composer dependencies
├── writable/ # Cache, logs, sessions, uploads
├── .env # Environment-specific settings (dev, prod)
├── composer.json # Composer configuration file
├── phpunit.xml.dist # PHPUnit config
├── README.md # Project description
└── spark # CLI tool to run CodeIgniter commands

Workflow Summary

1. Request hits /public/index.php

2. Routes to /app/Controllers/...

3. Uses /app/Models to fetch/save data

4. Loads /app/Views to show output