Archive | Uncategorized RSS for this section

Migrating symfonydev.co.za

Its been almost a year since I’ve done any dev work with symfony. Therefore I have migrated symfonydev.co.za over to here. I have since started using a few other PHP frameworks so having a blog related only to symfony didn’t make sense anymore.

Loading helpers from an action or model in Symfony 1.2

Just quick post today about loading helpers in symfony 1.2 from an action or model.

Previously I would use the sfLoader class to load a helper, but it now says:

The sfLoader::loadHelpers() method is deprecated. Please use the same method from sfApplicationConfiguration.

So, from the action you should now use:

$this->getContext()->getConfiguration()->loadHelpers('Url');

From the model you can use:

sfContext::getInstance()->getConfiguration()->loadHelpers('Url');