How can I access "web" folder from config.yml in a symfony2 app ? I have tried %web%, %base_dir%, %asset_dir% and am running into a brick wall.
In config.yml
you can use %kernel.root_dir%/../web
.
If you want a handy shortcut, in your parameters.ini
you can define something like :
web_dir = %kernel.root_dir%/../web
Then in config.yml
you will use %web_dir%
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With