1.

Explain the architecture / Application flow of Codeignitor.

Answer»

Source

Index.php FILES act as a front controller so requests first come here. It initialises base resources required to run Codeignitor. 

Now Router determines what should be done with requests. If a cache file EXISTS for the request then information is directly passed to the browser and further process is ignored.   

If the cache doesn’t exist then before loading the APPLICATION controller, HTTP requests PASS through the security check. Index.php -> Route -> Security. 

Once the security check is done for submitted data, the request is passed to the Application controller. Application Controller loads all the necessary files like controller, model, view, libraries, HELPERS, etc and processes the request. Index.php -> Route -> Security -> Application Controller -> Models, Library
<- Helpers, Plugins

Now processed data from application controller has been sent to View. The view will provide the page with available data for caching so that further requests can be handled faster. 



Discussion

No Comment Found