When I use the __()
function for translating a message in the AppController I get the following error:
PHP Parse error: syntax error, unexpected '(', expecting ')'
This is my code:
public $components = array(
'Session',
'Acl',
'Auth' => array(
'authError' => __('Did you really think you are allowed to see that?'),
'authorize' => array(
'Actions' => array('actionPath' => 'controllers')
)
)
);
__()
is supposed to be a global function, right?. Because it seems PHP is not calling it.