RE: How do I pass parameters to a controller’s index() function?

How do I pass parameters to a controller\’s index() function?

Amir Hussain Senior Developer Asked on July 2, 2018 in CODEIGNITER.
Add Comment
1 Answers
class demo extends CI_Controller{
function __construct() {

parent::__construct();
}
public function index($arg = 'null'){

// var_dump($arg);

$this->load->view('demo');

}

}
IT Head Answered on July 4, 2018.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.