This is my variable declaration inside my action: public $var = sfConfig::get('constant_name');
Returns php error: Parse error: syntax error, unexpected T_VARIABLE, expecting T_FUNCTION in C:\wamp\www\project\app\module\actions\actions.class.php on line 13
When I put $var = sfConfig::get('constant_name');
it works fine. The problem comes from using sfConfig::get() outside of a function inside of action class. Any idea why this is not working? Thanks.