Hi guys,
I would like to display the data of post like this:
Y minutes ago
X hours ago
Z days ago
the letter would be the actually number.
Can I use the TimeHelper for that? My current code is like this:
{{{
?php echo $post['Post']['created'];?
}}}
How should I change so I will be able to
http://book.cakephp.org/2.0/en/core-utility-libraries/time.html#CakeTime::timeAgoInWords
--
***Thiago Belem*
Desenvolvedor
Rio de Janeiro - RJ - Brasil
*Assando Sites* - Curso online de *CakePHP*
assando-sites.com.br http://goo.gl/b1EEd
thiagobelem.net
cont...@thiagobelem.net
*Skype / gTalk
haha, I just gave the exact same comment-less answer here
http://ask.cakephp.org/questions/view/how_to_use_the_timehelper_to_some_thing_like_it_was_post_5_hours_ago
Am Freitag, 1. März 2013 23:44:37 UTC+1 schrieb Thiago Belem: