I use the construct __('text')in symfony, so I can then internationalize. However, I tried using it in the setFlash message as follows
$this->getUser()->setFlash('error', __('message'));
in actions /actions.class.php, but it gives me an error
Fatal error: Call to undefined function __()
I must assume that I cannot use __()at the action level, but only at the template level?
source
share