Welcome Guest, Not a member yet? Register   Sign In
getting object from another controller
#1

[eluser]jtan[/eluser]
is it possible to get object from another controller or use the declaration of another controller to the current controller?

like if a make a new class My_Controller and use it, can i use that with my different controllers? if so how do i do it? thanks.
#2

[eluser]SPeed_FANat1c[/eluser]
Code:
like if a make a new class My_Controller

You mean you make library? So this way you extend a controller class. And when you make controllers you then can extend your controllers with My_Controller, not the Controller, so you will be able to use methods of My_Controller library. Just search in forums MY_Controller and you'll find examples.




Theme © iAndrew 2016 - Forum software by © MyBB