We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Current usage of ActiveForm is really complicated. It requires combination of {{ use() }}, {% set form %} and |raw.
{{ use() }}
{% set form %}
|raw
{{ use('yii/widgets/ActiveForm') }} {% set form = active_form_begin({ 'id' : 'login-form', 'options' : {'class' : 'form-horizontal'}, }) %} {{ form.field(model, 'username') | raw }} {{ form.field(model, 'password').passwordInput() | raw }} <div class="form-group"> <input type="submit" value="Login" class="btn btn-primary" /> </div> {{ active_form_end() }}
It can be simplified like Symfony's form_ functions https://symfony.com/doc/current/reference/forms/twig_reference.html
form_
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Current usage of ActiveForm is really complicated.
It requires combination of
{{ use() }}
,{% set form %}
and|raw
.It can be simplified like Symfony's
form_
functionshttps://symfony.com/doc/current/reference/forms/twig_reference.html
The text was updated successfully, but these errors were encountered: