CakePHP Money Helper Plugin
29th January 2015
Looking for a way to make your currency appear neater in CakePHP Views? The Money Helper has been designed to make currency appear as small as possible.
The CakePHP Money Plugin helps format currency a little better than the $this->Number->currency helper currently does.
Using the $this->Money->small method, you can format any number to display the money amount in a smaller format possible.
It will strip any ".00" and automatically display the currency as a whole number rather than adding ".00"
10.00 becomes $10
9.90 becomes $9.90
100 becomes $100
100.04 becomes $100.04
1000 becomes $1,000
1000.9 becomes $1,000.90
My name is Michael Houghton and I have been freelancing as a web developer for nearly fifteen years.
Would you like to learn the secret to my success as a freelancer? Visit FreelancerMentor.com to sign up & learn my formula (for free).