🔥 CodeIgniter
Beginner
What is the folder structure of CodeIgniter 4?
Answer
CodeIgniter 4 has a clean directory structure: app/ (your application code — Controllers, Models, Views, Config, Filters, Libraries), public/ (web root — index.php, CSS, JavaScript, images — the only publicly accessible folder), system/ (the CI4 framework core — do not modify), writable/ (logs, cache, sessions, uploads — must be writable by the web server), tests/ (test files), vendor/ (Composer dependencies). The app/Config/ directory contains all configuration files as PHP classes. The app/Views/ directory contains view templates. Unlike older frameworks, CI4 separates the web root from the application code — the application never lives inside the public folder, improving security.