Is it possible for one controller/method to call another controller/method? |
It is possible. The easiest method I can describe is when it happens within the same class.
Code: class Bar extends CI_Controller { If the alternative method by some important reason is to be inside a different controller, then I can imagine using the modular extensions by wiredesignz. But I am lazy to write code for that, you can, I am sure. PS: Be careful how the second controller initializes. |
Messages In This Thread |
Is it possible for one controller/method to call another controller/method? - by sneakyimp - 07-24-2015, 03:46 PM
RE: Is it possible for one controller/method to call another controller/method? - by Dracula - 07-24-2015, 05:00 PM
RE: Is it possible for one controller/method to call another controller/method? - by ivantcholakov - 07-24-2015, 05:02 PM
RE: Is it possible for one controller/method to call another controller/method? - by Dracula - 07-24-2015, 05:06 PM
RE: Is it possible for one controller/method to call another controller/method? - by sneakyimp - 07-25-2015, 07:02 AM
RE: Is it possible for one controller/method to call another controller/method? - by Wouter60 - 07-25-2015, 12:48 PM
|