Call another page according to the option id

$this->loadModel(‘TodasReceitas’);
$todasReceitas = $this->TodasReceitas->find(‘all’)->where([
‘TodasReceitas.id’=> 6
]);

call another page according to the id of the selected option and do not need to leave set which id I want ie the option that is chosen, will open the page according to the id of the chosen option

Refer this page click
It helps you.

thank you.
I was able to solve