0 votes
in CodeIgniter by
What do you mean by the controller in CodeIgniter.

1 Answer

0 votes
by
The intermediary present between the models and the views to process the HTTP request and is used to generate a web page is known as a controller. It is basically known as the center of each

request that exists on the web application of the user.

Please consider the following URL in this reference,

projectName/index.php/welcome/

In this URL the CodeIgniteris basically trying to find the welcome.php file and the Welcome class.Controller Syntax

class ControllerName extends CI_Controller

{

public function __construct()

{

parent::__construct();

}

public function MethodName()

{

}

}

Related questions

0 votes
asked Dec 27, 2020 in CodeIgniter by SakshiSharma
0 votes
asked Feb 2, 2021 in CodeIgniter by SakshiSharma
...