I want to use the distance_of_time_in_words
function from DateHelper
into another Helper.
How to use symfony DateHelper
into my custom Helper?
Any hint is very much appreciated.
I want to use the distance_of_time_in_words
function from DateHelper
into another Helper.
How to use symfony DateHelper
into my custom Helper?
Any hint is very much appreciated.
I think I found the solution.
Added following line before calling distance_of_time_in_words() function in my helper.
sfProjectConfiguration::getActive()->loadHelpers(array('Date'));
That is what I needed, Thanks.