Let We have set a variable “test_Case” in APPController
$this->set(‘test_Case’ , ‘1’);
And We have to use it in Other controller file say TestsController.php
then we will use $this->viewVars.
here we will be used
$test_Case = $this->viewVars[‘test_Case’];