Usually instead of messing around with a frameworks “formatting” I just use php like
$namt = number_format($amt, 2, '.', '');
And done. I use cake, laravel, and yii2, and a custom framework, and found it best to stray away from too much framework biased code. The “guts” of these frameworks is regular php code anyway.