I'm pretty sure that I don't have an error in my syntax, so it must be that PHP doesn't allow concatenated strings in property definitions. Is this the case?
This is what I have...
Code: Select all
class slt_handler_form_login extends slt_handler_form {
protected $form_redirect_failure = SLT_ROOT_URL.'/login/';
protected $form_redirect_success = SLT_ROOT_URL . '/user/';
...etc
And it says "Parse error: syntax error, unexpected '.', expecting ',' or ';'", referring to the line with $form_redirect_failure. I made sure that the constant is defined by commenting out the deviant lines and echoing it out in the __construct() method, so that's not the issue.
Since it seems like this is not allowed, is there a way around it? I'd rather not have to prepend SLT_ROOT_URL everywhere the properties are used.
Thanks.