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



Whereisstuff is simple learing platform for beginer to advance level to improve there skills in technologies.we will provide all material free of cost.you can write a code in runkit workspace and we provide some extrac features also, you agree to have read and accepted our terms of use, cookie and privacy policy.
© Copyright 2024 www.whereisstuff.com. All rights reserved. Developed by whereisstuff Tech.