Posts Tagged ‘smarty templates’

Smarty templates: Creating smarty custom functions

Smarty templates: Creating smarty custom functions
Yesterday I wrote an article about a php method that can convert normal timestamp into "x Min Ago" like timestamps. I will call these type of timestamps an "agots". Although the PHP method is straight forward in converting unix timestamps to agotimestamps, I thought of implementing a custom function in smarty that can be used ...