File structure in CodeIgniter
In the wake of unfastening the CodeIgniter organizer you will get a record chain of command of CodeIgniter documents as demonstrated as follows.
Codelgniter File sttructure in codelgniter 1
CodeIgniter document structure is basically separated into three sections:
Application organizer is the fundamental advancement envelope for you where you will build up your undertaking. It contains your models, sees, controllers, arrangement and numerous different documents. It contains all the code of the task you are chipping away at.
- Reserve - Cache stores the handled information so this information can be effectively stacked inside no time for the future use. It speeds up your page get to.
- Config - The config envelope contains design documents as demonstrated as follows. These records permit arranging CodeIgniter application.
Take a gander at the above preview, autoload.php document will stack your libraries, assistants or you can characterize custom records so you don't need to call them over and over in your venture. In config.php document we set our base-url and so forth. In database.php record we have to arrange our database setting to associate it from our venture. In routes.php record you can set your default controller page.
Controllers - Web application stream is constrained by the controller. All the server-side functionalities are dealt with by the controller. To put it plainly, it controls the CodeIgniter application. On the off chance that controller bombs all the work related with it will likewise fizzle, much the same as CPU in a PC.
Name of the controller class record will consistently begin with a capitalized letter. For instance, it will be named like Main.php and not main.php.
- Center - CodeIgniter has some center class, these class make up the CodeIgniter system and are spared in center document.
For the most part, there will be no compelling reason to change these classes, yet on the off chance that on the off chance that you are adjusting a class, make a class in "application/center" envelope having same name as the center class document name in "framework" organizer.
- Aides - A partner encourages you to finish task in CodeIgniter. For instance,
- $this->load->helper('form'); will make a structure that will work superbly with CodeIgniter. Furthermore,
- $this->load->helper('date'); will get you date includes in your applications.
- Snares - This organizer interferes into the internal working of stream of use.
- Language - With the assistance of this envelope you can make content documents with explicit language and can utilize them in your undertaking.
- Libraries - In this envelope you can store libraries created by you for your application.
- Logs - If your CodeIgniter application is showing some mistake or special case taking care of messages and on the off chance that you are not getting what they are, you can search for their clarification right now.
- Models - Models are utilized to stack database inquiries. Controllers demand model to stack database inquiry, model react it back and afterward controller use it.
- Third_party - Third gathering modules are put away right now use in the application.
- Perspectives - It contains all your html records. Controller load document from view and afterward gives the yield.
All activity of CodeIgniter application occurs here. It contains records which makes the coding simple.
- Center - It contains CodeIgniter center class. Try not to roll out any improvements right now.
- Database - It contains database drivers and different utilities.
- Textual styles - It contains textual style related data.
- Aides - It contains default aides, for example, URL, date and treat.
- Language - CodeIgniter underpins multilingual web applications. It contains default language document.
- Libraries - It contain libraries like schedules, document transfer, email, and so on libraries made by you will be spared in "application/libraries". Here, just standard libraries will be put away.
It is the disconnected CodeIgniter control. It accompanies each CodeIgniter downloaded variant. If there should be an occurrence of any inquiry, you can peruse its client manage. You can learn here all the capacities, libraries, assistants of CodeIgniter. Before beginning utilization of CodeIgniter experience this guide once.
To wrap things up, you can see a document index.php. Here we can set application condition and mistake level. It is better not to contact this record if don?t have adequate information.