Hi,
For me there are 2 ways for including helpers somewhere else than
templates with use_helper('I18N', 'Number') :
sfLoader::loadHelpers(array('I18N', 'Number')); // for sf 1.1
sfContext::getInstance()->getConfiguration()-
>getApplicationConfiguration()->loadHelpers(array('I18N',
'Number')); // sf 1.2
Hope it helps!
Florian
On Jun 22, 5:35 pm, xhe <[email protected]> wrote:
> I wan to use format_country function in my cron task, but
> unfortunately, the CLI throw exception as "Fatal Error: call to
> undefined function format_country"
> I know format_country should be used in template, but are there any
> way to use this function in the Task which is not a template. If not,
> how do we parse country code into country name automatically?
> thanks for your kind help.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"symfony users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---