Hi all! Maybe it's very simple question, but I can't find the answer. I have form class LoginForm with Submit button like LoginForm in Vokuro example.
$t - is an object with translations for preferred language. So I need something like that:
<input type="submit" class="red-button" value="Log In">
or
<input type="submit" class="red-button" value="Увійти">
depends on lanuage, but it always like this:
<input type="submit" class="red-button" value="login">
This is my code:
$submit = new Submit('login', array(
'class' => 'red-button',
'value' => $t->Form->Login->Submit // This won't work! =(
));
$submit->setDefault($t->Form->Login->Submit); // This won't work too! =(
$this->add($submit);
Also I tried this:
{{ form.render('login', ['value': t.Form.Login.Submit]) }}