i wish to access a variable in cakephp which is global in scope - that is it is in same controller but different function. code:
homeController.php
public function opauth_complete() {
//global $facebook_data;
$this->facebook_data = $this->data;
debug($this->facebook_data); // returns data
$this->redirect(array('controller' => 'home',
'action' => 'user_home'));
}
public function user_home()
{
// i wish to use $facebook_data here.
debug($this->facebook_data); // returns null
}
how do i implement this without using session?