title: set rules for array input field in Yii
body: <p>I have field where I can add multiple row on click "+" button. But I want to set required rules in Yii validator form.</p>
  
  <p>['input_field_name',  'each', 'rule' => ['required']]</p>
  
  <p>I have this input field </p>
  
  
  
  <pre class="lang-html prettyprint-override"><code>&lt;input type="number" class="form-control reqInput input-unchanged" name="Domains[input_name][0][phone]"&gt;
  &lt;input type="number" class="form-control reqInput input-unchanged" name="Domains[input_name][1][phone]" value=""&gt;
  &lt;input type="number" class="form-control reqInput input-unchanged" name="Domains[input_name][2][phone]" value=""&gt;
  </code></pre>
  
  
  
  <p>I want required rules for each input field.</p>