Welcome Guest, Not a member yet? Register   Sign In
parameter passing from view to controller via anchor
#6

[eluser]OliverHR[/eluser]
In the view as noctrum say:
Code:
echo anchor('your_controller/your_function/'.$pid, 'Link text');

On the controller:
Code:
function your_function($proj_id) // check your parameters names
{
   echo 'project number:' . $proj_id;
}


Messages In This Thread
parameter passing from view to controller via anchor - by El Forum - 08-08-2011, 12:50 PM
parameter passing from view to controller via anchor - by El Forum - 08-08-2011, 01:25 PM
parameter passing from view to controller via anchor - by El Forum - 08-08-2011, 01:43 PM
parameter passing from view to controller via anchor - by El Forum - 08-08-2011, 03:43 PM
parameter passing from view to controller via anchor - by El Forum - 08-08-2011, 04:41 PM
parameter passing from view to controller via anchor - by El Forum - 08-08-2011, 04:42 PM
parameter passing from view to controller via anchor - by El Forum - 08-09-2011, 04:02 AM
parameter passing from view to controller via anchor - by El Forum - 08-09-2011, 08:51 AM
parameter passing from view to controller via anchor - by El Forum - 08-09-2011, 11:36 PM
parameter passing from view to controller via anchor - by El Forum - 08-10-2011, 10:37 AM



Theme © iAndrew 2016 - Forum software by © MyBB