0 votes
in CodeIgniter by
edited by

Explain controller in CodeIgniter.

🔗Source: CodeIgniter Interview Questions and Answers

🔗Source: JAVA Interview Questions and Answers

1 Answer

0 votes
by

A controller is the intermediary between models and views to process the HTTP request and generates a web page. It is the center of every request on your web application.

Consider following URI,

abc.com/index.php/front/  

In this URI, CodeIgniter try to find Front.php file and Front class.

Controller Syntax

controller 1

Look at the above snapshot, controller's file name is Main.php (the first letter has to be in uppercase), and the class name is Main (the first letter has to be in uppercase).

...