$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