I'm trying to put a 'global' value in a PHP controller, because I use it constantly in different functions, so, I've to send it a lot of times in the view, I saw that I can do a public variable like an attribute in Java. I have to declare the variable:
var $team="";// or public $team="";
How can I put, and get the value of the PHP attribute?