How can I retrieve GET values inside a PHP Class construct or functions?
Similar subject can be found here which I referred to session values, scope.
Access Session Variable within a class
Example which doesn’t retrieve value, set inside class construct.
$this->siteid = $_GET['siteid'];
or
$this->siteid = $_REQUEST['siteid'];
The purpose of the above is to retrieve id for testing params, goal is to hold these inside session, similar problem.
Can you please check what does
var_dump($_REQUEST). I think that variable isn’t present in$_GETvariable in that particular page in where you are accessing the class.