Welcome Guest, Not a member yet? Register   Sign In
Calling Controllers Functions with function name in a php variable
#1

[eluser]ReSTe[/eluser]
Hi all...

I've a problem:

i have a variable named backpergest2 that contains the name of a function of my controller.
The idea is that i'm in a controller function and i've to call another controller function (backpergest2=name of controller function that i've to call)...

i've tried this code:

$this->$backpergest2;

but php shows me the following error:

Severity: Notice

Message: Undefined property: Tmfmagenta::$visualizzaprocspec()

Filename: controllers/tmfmagenta.php

Line Number: 18103


as u can see the name of the function that i've to call is visualizzaprocspec() and it is also the content of the variable $backpergest2.

what can i do?

thanks a lot, and greetings from italy Smile

Matteo

PS: the function visualizzaprocspec() exist in the controller.


Messages In This Thread
Calling Controllers Functions with function name in a php variable - by El Forum - 11-29-2007, 07:47 AM



Theme © iAndrew 2016 - Forum software by © MyBB