Let's say I have the function
public function testeX(){
$x = 1;
$this->set('x', $x);
}
And I want to access the value of x in another function that has a view testY.ctp
public function testeY(){ // Esta é minha view
//Como faria pra acessar a variavel $x aqui ?
}
I just want to access the value of $ x in my view testY ... Because it is the $ x value that has the result of my search that will be shown in a modal. I'll go through the value of $ x to put in their respective fields.