Smarty Modifier filesize
Smarty is a great tool when you want to separate your content and your code. Smarty comes with multiple helpful plugins but one I often use is to display how much a file takes on a hard drive. If you fetch file information from a database and you want to display them, one of the field you want to display will be the file size. Now, if a size as more than few Megs it can be hard to read. Here's a simple Smarty modifier that will allow you to display any given integer to a more human readable format.... detail[...]
Related:
Nothing related...