1.

What do you mean by the controller in CodeIgniter?

Answer»
  • The mediator present between the model and the view for processing the HTTP request and is used for generating a WEB page is called a controller. It is considered as the center of each HTTP request that exists on the web application of the user.
  • Consider the FOLLOWING URL in this reference: projectName/index.php/welcome/
    In this URL, the CODEIGNITER is trying to find the welcome.php file and the Welcome class.
  • Controller syntax is GIVEN below:
class ControllerName extends CI_Controller{ public function __construct() { PARENT::__construct(); } public function MethodName() { }}


Discussion

No Comment Found