In this section, we will learn how to upload more than one image and file by using Codeigniter. The following example provides a simple way to upload more than one image and file. In order to upload multiple files, we will use the upload library in Codeigniter. This library uses an uploads directory to save all the files and images. The steps to upload more than one image and files are described as follows:. In this step, we are going to Download Codeigniter 3.
A CodeIgniter Application's Folder Structure and Important Files – Self-Taught Coders
The Config class provides a means to retrieve configuration preferences. This class is initialized automatically by the system so there is no need to do it manually. You can add your own config items to this file, or if you prefer to keep your configuration items separate assuming you even need config items , simply create your own file and save it in config folder. CodeIgniter will intelligently manage these files so there will be no conflict even though the array has the same name assuming an array index is not named the same as another.
A controller is a simple class file. As the name suggests, it controls the whole application by URI. You will find two files there, index.
Routes are responsible for responding to URL requests. Routing matches the URL to the pre-defined routes. If no route match is found then, CodeIgniter throws a page not found an exception. Routes are defined using the formula example.