I have two controllers a and b.
a
b
I would like to call a method of controller a from a method of controller b.
You can use the redirect URL to controller:
Class Ctrlr1 extends CI_Controller{ public void my_fct1(){ redirect('Ctrlr2 /my_fct2', 'refresh'); } } Class Ctrlr2 extends CI_Controller{ public void my_fct2(){ $this->load->view('view1'); } }