Hey,
I'm trying to provide access to \Phalcon\Translate\Adapter\NativeArray on a global scale by setting it as a view var in my controller:
<?php
$mainTranslate = new \Phalcon\Translate\Adapter\NativeArray(array('content' => $messages));
$this->view->setVar('t', $mainTranslate);
However, from inside the Volt template, I can not access the method of t as it should work (in case I understood the docs right):
<title>{{ t._('Hi') }}</title>
All I get is the following error:
Parsing error before '('Hi') }}
What am I doing wrong?
Thanks in advance!
Best,