Welcome Guest, Not a member yet? Register   Sign In
Calling method of other class
#1

[eluser]bapobap[/eluser]
Hi all,

I've coded an API which uses the following to route requests:

$controller_name::$controller_method();

This works fine in PHP 5.3+ but it doesn't in 5.2, which is unfortunately what my server is running (have no control over updating).

Is there anyway around this? I've found references to stuff like call_user_func but then the method I'm calling doesn't see the big $this singleton.

Thanks if you can help, just spent 3 days re-writing code, only to find the entire thing won't work because of this one line of code :-S


Messages In This Thread
Calling method of other class - by El Forum - 06-19-2010, 06:14 PM
Calling method of other class - by El Forum - 06-20-2010, 12:57 AM
Calling method of other class - by El Forum - 06-20-2010, 03:07 AM
Calling method of other class - by El Forum - 06-20-2010, 03:15 AM
Calling method of other class - by El Forum - 06-20-2010, 03:19 AM
Calling method of other class - by El Forum - 06-20-2010, 03:24 AM
Calling method of other class - by El Forum - 06-20-2010, 03:38 AM
Calling method of other class - by El Forum - 06-20-2010, 03:49 AM
Calling method of other class - by El Forum - 06-20-2010, 03:56 AM
Calling method of other class - by El Forum - 06-20-2010, 03:58 AM
Calling method of other class - by El Forum - 06-20-2010, 04:32 AM
Calling method of other class - by El Forum - 06-20-2010, 04:34 AM



Theme © iAndrew 2016 - Forum software by © MyBB