title: Yii2: How to format input number to currency es-AR?
body: <p>I have a <strong>_form.php</strong> file with this field:</p>
  
  <pre><code>&lt;?= 
  $form-&gt;field($model, 'price')
  -&gt;textInput([
      'class' =&gt; 'form-control',
      'type' =&gt; 'number'
  ])
  ?&gt;
  </code></pre>
  
  <p>The price has this format <code>1234.50</code>. I would like to have the format <strong>es-AR</strong>, like this: <code>1234,50</code>.</p>
  
  <p>In the <strong>GridView</strong> of <strong>index.php</strong> I use this code and it works great so I would like to do the same in the <strong>_form</strong> but it is not working.</p>
  
  <pre><code>[
      'attribute' =&gt; 'price',
      'value' =&gt; function($myModel) {
          $myFormat = new NumberFormatter("es-AR", NumberFormatter::CURRENCY);
          return  $myFormat-&gt;formatCurrency($myModel-&gt;price, "ARS");
      },
  ]
  </code></pre>