1

Yii Framework provides a simple way to find the currency symbol for any given currency code (USD/EUR/JPY...), for example:

Yii::app()->locale->getCurrencySymbol('USD');

But how do we find the currency code which corresponds to the locale in use?

Moe Far
  • 2,742
  • 2
  • 23
  • 41
mae
  • 14,947
  • 8
  • 32
  • 47

1 Answers1

1

There is no relation set in Yii between the locales and currency symbols. You need to do your own mapping if you need such relation.

chris---
  • 1,536
  • 1
  • 13
  • 14