Welcome Guest, Not a member yet? Register   Sign In
Same Class, different controllers?
#5

[eluser]GrahamDj28[/eluser]
I must be missing something, don't see how your example explains your original question.

Your question was can
ClassA / function1 use MY_Controller

And can
ClassA / function2 use CI_Controller

When you say USE, I assume you have a class with 2 functions and that
Function1 calls a function IN MY_Controller and
Function2 calls a function IN CI_Controller

But if you mean that classA is a Controller and it has 2 functions that
Function1 calls a function IN MY_Controller and
Function2 calls a function IN CI_Controller

Then yes, you can because, MY_Controller extends CI_Controller and Class A extends MY_Controller. So all functions in MY_Controller and CI_controller are available in Class A. If they are public Smile


Messages In This Thread
Same Class, different controllers? - by El Forum - 05-03-2012, 03:02 PM
Same Class, different controllers? - by El Forum - 05-03-2012, 03:09 PM
Same Class, different controllers? - by El Forum - 05-03-2012, 03:51 PM
Same Class, different controllers? - by El Forum - 05-03-2012, 04:33 PM
Same Class, different controllers? - by El Forum - 05-04-2012, 04:46 AM
Same Class, different controllers? - by El Forum - 05-04-2012, 08:45 AM



Theme © iAndrew 2016 - Forum software by © MyBB