title: Yii2 - Currency symbol position
body: <p>In Yii2 I'm using the function <code>Yii::$app-&gt;formatter-&gt;asCurrency($sellingPrice);</code> to print currencies. As the locale is Danish the output for this is something like </p>
  
  <pre><code>10,00 kr
  </code></pre>
  
  <p>Now I've been trying to use this same function to display </p>
  
  <pre><code>kr 10,00 
  </code></pre>
  
  <p>but I cant find how to do this.</p>
  
  <p>The <a href="https://www.yiiframework.com/doc/api/2.0/yii-i18n-formatter#asCurrency()-detail" rel="nofollow noreferrer">documentation's</a> directions are to set those options through <code>$numberFormatterOptions</code> and <code>$numberFormatterTextOptions</code>, but no directions as to what exactly to set for those </p>
  
  <p>I tried, among a thousand other things: </p>
  
  <pre><code>Yii::$app-&gt;formatter-&gt;asCurrency($modifier-&gt;getMoneyFormat('sellingPrice'), null, [NumberFormatter::PADDING_POSITION =&gt; NumberFormatter::PAD_BEFORE_PREFIX], [NumberFormatter::PADDING_POSITION =&gt; NumberFormatter::PAD_BEFORE_PREFIX]) 
  </code></pre>
  
  <p>but this won't work. I also tried passing  <code>[NumberFormatter::PAD_BEFORE_PREFIX =&gt; true]</code> to both <code>$numberFormatterOptions</code> and <code>$numberFormatterTextOptions</code> but both wont work. </p>
  
  <p>What am I doing wrong? Or how should I achieve this?</p>