How can I pass the global variables to the classes I want to use without declare them as GLOBAL in every method of the class ?
example :
$admin = \"
Copy them into object variables in the constructor.
global $user; $this->user = $user;
It's not too elegant, anyway, using globals is not too elegant.