Welcome Guest, Not a member yet? Register   Sign In
Is it possible for one controller/method to call another controller/method?
#6

If you need a class that is shared between multiple controllers, the best method is to make a library out of it.
In every controller where you need to access the shared functions/methods, you include the library with:
PHP Code:
$this->load->library('your_library_name'); 
Reply


Messages In This Thread
RE: Is it possible for one controller/method to call another controller/method? - by Wouter60 - 07-25-2015, 12:48 PM



Theme © iAndrew 2016 - Forum software by © MyBB