number formater

according to the text in /framework/utils/CFormatter.php()

Therefore, one may call <code>Yii::app()->format->boolean(1)</code>

however I am unable to get it to work

$value = Yii::app()->format->boolean(1);

gives this error

I wish I was smarter!

but I can’t seem to figure this one out.

anyone got any suggestions?

Does formatBoolean() works? boolean() is a shortcut for that function.

yes, thank you!

$value = Yii::app()->format->formatBoolean(1);

this worked

My original intention was to format a currency value

so at least I am getting something happening now



Ok good. I’ve noticed this bug is already fixed in svn, so you may use the latest revision for developing. :)