CodeIgniter Application's FOLDER & FILE Structure

It is very important to understand the file structure in CodeIgniter if you want to develop applications successfully.

The following image shows the file structure in CodeIgniter

Let's now look at the above files

Let's now look at the directories in more details

Application subdirectories

As we stated above, this directory contains the application code. In this section, we will look at the internal subdirectories

System subdirectories

Let's now look at system subdirectories. Remember this is where the framework source code resides. Therefore, don't make any changes to the files in this directory.

User_guide directory

This file serves as a reference guide for you when you want to understand the CodeIgniter API. You should not upload this directory when deploying your application.

Vendor directory

This directory contains source files for packages that you install via composer. The files in this directory should be left as they are. No changes should be made to them. Unlike the user_guide directory, this directory should be uploaded if you are using composer packages in your application.

Index.php file

This directory contains source files for packages that you install via composer

Summary

 

YOU MIGHT LIKE: