Skip to content

Instantly share code, notes, and snippets.

@j0k3r
Created March 6, 2012 09:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • 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