Welcome Guest, Not a member yet? Register   Sign In
function call by getting the name of function from URL
#1

[eluser]alberta[/eluser]
hello,

I want to get the name of function from url and then call that function in controller.
I have retrieve the name of function from url by using

Code:
$function_name = explode("projects/", $_SERVER['HTTP_REFERER']);
It gives me name of function , now i've problem how to call this function in controller.
I want to use something like that

$this->'$function_name[1]';

it gives error

Undefined property: Projects::$site_plan ( whereas site_plan is name of function)
Can someone tell me how to call this function ??

Thanks in Advance


Messages In This Thread
function call by getting the name of function from URL - by El Forum - 06-16-2009, 01:18 AM
function call by getting the name of function from URL - by El Forum - 06-16-2009, 01:25 AM
function call by getting the name of function from URL - by El Forum - 06-16-2009, 02:51 AM
function call by getting the name of function from URL - by El Forum - 06-16-2009, 03:07 AM
function call by getting the name of function from URL - by El Forum - 06-18-2009, 08:16 AM
function call by getting the name of function from URL - by El Forum - 06-18-2009, 09:06 AM
function call by getting the name of function from URL - by El Forum - 06-18-2009, 09:21 AM
function call by getting the name of function from URL - by El Forum - 06-18-2009, 09:24 AM
function call by getting the name of function from URL - by El Forum - 06-18-2009, 09:24 AM
function call by getting the name of function from URL - by El Forum - 06-18-2009, 09:38 AM



Theme © iAndrew 2016 - Forum software by © MyBB