title: How to create yii2 inline checkbox list
body: <p>I have described my problem on <a href="http://www.yiiframework.com/forum/index.php/topic/60596-how-to-create-inline-checkbox-with-checkboxlist/">yii2 forum</a>, but no one helped me, most likely because no one knows the answer.</p>
  
  <p>Here is the short description here.</p>
  
  <p>I would like to make this:</p>
  
  <pre><code>&lt;label class="checkbox-inline"&gt;&lt;input type="checkbox" value="ASD"&gt;Option 1&lt;/label&gt;
  &lt;label class="checkbox-inline"&gt;&lt;input type="checkbox" value="DSA"&gt;Option 2&lt;/label&gt;
  &lt;label class="checkbox-inline"&gt;&lt;input type="checkbox" value="REW"&gt;Option 3&lt;/label&gt;
  </code></pre>
  
  <p>but with yii2 checkboxList Html helper.</p>
  
  <p>This is my simplified array of checkbox values</p>
  
  <pre><code>&lt;?= $form-&gt;field($model, 'country')-&gt;checkboxList(['FR'=&gt;'France', 'DE'=&gt;'Germany']) ?&gt;
  </code></pre>
  
  <p>I need to insert the <code>class="checkbox-inline"</code> into the label tags of each checkbox generated by this yii2 helper method but I can not figure out how to do it.</p>
  
  <p>I was following these guides: <a href="http://www.yiiframework.com/doc-2.0/yii-helpers-basehtml.html#checkboxList%28%29-detail">checkboxList</a> and checkbox one ( I can't post more than 2 links because I am new here ) but they are not helpful to me, I just do not understand what I have to do. Everything I tried just failed.</p>
  
  <p>Can someone help me please, I am trying for 3 days now ?</p>