How to load helpers in model class
In the class, add this:
$configuration = ProjectConfiguration::getApplicationConfiguration('frontend', 'prod', true);
$context = sfContext::createInstance($configuration);
$configuration->loadHelpers('url', 'Partial');
then try to call the helplers

浙公网安备 33010602011771号