Calling another Controller's methods in CodeIgniter

Everyone says not to do it, but there are cases where I want to do it.

 

There is a way to do this.

 

Say you have a controller named products with a method named "_controller_method". Here's how to call it:

  1. require_once('products.php');
  2. $products = new products();
  3. $products->_controller_method($id);