Snippets tagged “kernel”
1 snippet uses this tag.
- How to get the server path to the web directory in Symfony2 from inside the controller?PHP
In Symfony2, you can use the $this->get('kernel')->getRootDir() method inside a controller to get the server path to the web directory.