Welcome Guest, Not a member yet? Register   Sign In
How can I pass a variable with anchor()
#3

[eluser]Naga Gotama Adhiwijaya[/eluser]
use this in your view
Code:
echo anchor("test/some_method/".$value->id, $value->description);



and you can get your variable in your "test" controller with this way:
Code:
function some_method($id)
  {
    echo $id;
  }


Messages In This Thread
How can I pass a variable with anchor() - by El Forum - 07-11-2011, 11:59 PM
How can I pass a variable with anchor() - by El Forum - 07-12-2011, 12:11 AM
How can I pass a variable with anchor() - by El Forum - 07-12-2011, 02:06 AM
How can I pass a variable with anchor() - by El Forum - 07-12-2011, 02:39 AM



Theme © iAndrew 2016 - Forum software by © MyBB