Welcome Guest, Not a member yet? Register   Sign In
using other controller's method
#1

[eluser]thevenin[/eluser]
Hi guys,

I have two controllers: one for admin panel and one for frontend app.
In both places I need a method which will output an array of objects - let's say the method name is "Rankings".

Admin panel controller:
Code:
class Standings extends Controller {

  ....

  function Rankings() {
    //some code
  }

  ....
}

I would like to call this method in my front controller Frontpage:

Code:
class Frontpage extends Controller {

   //is it possible to call it somehow here?
   //or I have to paste the whole method from Standings controller?

}


Messages In This Thread
using other controller's method - by El Forum - 04-19-2010, 06:14 AM
using other controller's method - by El Forum - 04-19-2010, 07:20 AM
using other controller's method - by El Forum - 04-19-2010, 07:33 AM
using other controller's method - by El Forum - 04-19-2010, 08:48 AM
using other controller's method - by El Forum - 04-19-2010, 09:12 AM



Theme © iAndrew 2016 - Forum software by © MyBB