Suppose you have two controllers file, one is users.php and another one is welcome.php. For some reason, you want to load the a function from users controller from inside the controller welcome. Write the below code in your welcome controller file: $this->load->library('../controllers/users'); $this->users->function_name();

