On Fri, Jan 20, 2012 at 3:12 PM, Oscar <[email protected]> wrote: > On 01/20/2012 11:56 AM, Andrew Ballard wrote: >> >> Is there a simple way using Zend_Measure to take a value of 75.5 >> inches and format it as "6 feet 3.5 inches" rather than 6.29 feet? If >> not, is there a better approach than simply putting a function to do >> the formatting inside a view script? >> >> Thanks, >> Andrew >> > if you're going to use it a lot, make it a view helper. Other than that, its > a pretty straight forward function to pretty print the measurement that way?
The function to format the output is a very simple, and it can easily be added to a view script. Frankly, that's what I'm planning to do at this point. I'm just not sure that solution sounds quite "correct". I guess we could create a view helper to do it just in case we need to do this in more than one script. Andrew -- List: [email protected] Info: http://framework.zend.com/archives Unsubscribe: [email protected]
