Hi,
Trying to display Locale specific currency using the main config array.
Currently not display anything. Can anybody see what I’m doing wrong?
Cheers.
'components'=>array(
'locale'=>array(
'id'=>'zh_TW',
),
//View
<?php
$this->widget('zii.widgets.CDetailView', array(
'data'=>$data,
'attributes'=>array(
array(
'label'=>'Hourly Rate',
//'value'=>Yii::app()->numberFormatter->formatCurrency($data->hourly_rate, "TWD"),
'value'=>Yii::app()->numberFormatter->formatCurrency($data->hourly_rate, "¤"),
),
array(
'label'=>'Materials Supplied',
'value'=>($data->materials_supplied) ? "Yes" : "No",
),
),
)); ?>