Skip to content

Instantly share code, notes, and snippets.

@phpfour
Created November 19, 2012 08:04
Show Gist options
  • Save phpfour/4109518 to your computer and use it in GitHub Desktop.
Save phpfour/4109518 to your computer and use it in GitHub Desktop.
Symfony2 - path to web directory
private function getWebDir()
{
return $this->getContainer()->get('kernel')->getRootdir() . '/../web/';
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment