我想在表单中添加一个类,例如:
<form role="form" action="/login" method="POST" class="userform">
我应该如何为 Yii 2.0 ActiveForm 类重写这个?
对于表单标签内的这个结构,同样的问题是:
<div class="ui-grid-solo">
<div class="ui-grid-a">
<label for="name">Full Name</label>
<input type="text" name="login" id="login" value="" data-clear-btn="true" data-mini="true">
<label for="password">Password</label>
<input type="password" name="password" id="password" value="" data-clear-btn="true" autocomplete="off" data-mini="true">
<input type="checkbox" name="remind" id="remind" value="1">
<label for="remind">Remember me</label>
<br>
<input type="submit" value="Login" onclick="this.form.submit();">
</div>
</div>