Welcome Guest, Not a member yet? Register   Sign In
Best way to pass function from MY_Controller to Controller
#2

Since Welcome controller extends MY_Controller, the methods are available as part of the Welcome controller. Just call it like any other method.

In your example, it looks like you want to have the content_top() method overridden by the Welcome controller, so you would simply make a new method with the same name in the Welcome controller. You might look at making the content_top method an abstract method in MY_Controller, if all controllers should have that method.
Reply


Messages In This Thread
RE: Best way to pass function from MY_Controller to Controller - by kilishan - 01-27-2016, 02:25 PM



Theme © iAndrew 2016 - Forum software by © MyBB