Skip to content

Instantly share code, notes, and snippets.

@j0k3r
Created March 6, 2012 09:40
Show Gist options
  • Save j0k3r/1985336 to your computer and use it in GitHub Desktop.
Save j0k3r/1985336 to your computer and use it in GitHub Desktop.
`loadHelpers` without using `sfContext::getInstance()`
<?php
// instead of using
sfContext::getInstance()->getConfiguration()->loadHelpers('Url');
// use
sfApplicationConfiguration::getActive()->loadHelpers(array('Url'));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment