I have a Config class with:
class Config{
[...]
public static function url()
{
if(self::debug)
return "https://localhost:44300";
else
return "https://www.mysite.com";
}
[...]
}
then a class to manage Facebook logins, where I want to define a string with the callback uri:
class Fb
{
public static $login_redirecturi = Config::url() . "/login/";
[...]
}
But I can't understand why it gives an error:
Parse error: syntax error, unexpected '(', expecting ',' or ';' in [...] on line 20
How can I do?