title: How to add class to ActiveForm in Yii 2.0 framework?
body: <p>I'd like to add a class to the form like:</p>
  
  <pre><code>&lt;form role="form" action="/login" method="POST" class="userform"&gt;
  </code></pre>
  
  <p>How should I rewrite this for Yii 2.0 ActiveForm class?</p>
  
  <p>The same question is for this structure inside of the form tag:</p>
  
  <pre><code>&lt;div class="ui-grid-solo"&gt;
       &lt;div class="ui-grid-a"&gt;
            &lt;label for="name"&gt;Full Name&lt;/label&gt;
            &lt;input type="text" name="login" id="login" value="" data-clear-btn="true" data-mini="true"&gt;
            &lt;label for="password"&gt;Password&lt;/label&gt;
            &lt;input type="password" name="password" id="password" value="" data-clear-btn="true" autocomplete="off" data-mini="true"&gt;
            &lt;input type="checkbox" name="remind" id="remind" value="1"&gt;
            &lt;label for="remind"&gt;Remember me&lt;/label&gt;
            &lt;br&gt;
            &lt;input type="submit" value="Login" onclick="this.form.submit();"&gt;
       &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>