Welcome Guest, Not a member yet? Register   Sign In
How to use a variable in: $this->index(); ?
#1

[eluser]chefnelone[/eluser]
Hello.

I'm running this line in a controller:

$this->index(); //it works fine

But I need to use it in this way:

$page = 'index';
$this->$page();// didn't work

or

$page = 'index()';
$this->$page; // didn't work


How can I do this?


Messages In This Thread
How to use a variable in: $this->index(); ? - by El Forum - 04-15-2010, 02:09 AM
How to use a variable in: $this->index(); ? - by El Forum - 04-15-2010, 02:23 AM
How to use a variable in: $this->index(); ? - by El Forum - 04-15-2010, 02:29 AM
How to use a variable in: $this->index(); ? - by El Forum - 04-15-2010, 02:35 AM
How to use a variable in: $this->index(); ? - by El Forum - 04-15-2010, 02:43 AM
How to use a variable in: $this->index(); ? - by El Forum - 04-15-2010, 03:03 AM
How to use a variable in: $this->index(); ? - by El Forum - 04-15-2010, 03:42 AM



Theme © iAndrew 2016 - Forum software by © MyBB