If I create a constructor function within my class with the variable called $base_url = 'mydomain'. How could I access this via other functions as a general variable?
I have tried creating a test function with echo $base_url but it did not return a variable.
Make it a class variable and reference it with
$thisOutput:
http://example.com/register