cakephp - send parameter url -


i sending values controller doing this

echo $html->link('do this? ',"/item/view/{$form->value('table.id')}"); 

on controller end cake pickups id this

function view($id = null){ .... } 

now in addition table.id, want send value called table2.source ...how controller gets it

function view($id = null, $source=null) ...something along lines not sure how controller in first place

can not change link url this:

echo $html->link('do this? ',     "/item/view/{$form->value('table.id')}/{$form->value('table2.source')}"); 

(after changing view function accept second parameter...)


Comments