Skip to content

Instantly share code, notes, and snippets.

@Nav-Appaiya
Created May 24, 2015 14:59
Show Gist options
  • Select an option

  • Save Nav-Appaiya/649684241f0795a5e3f5 to your computer and use it in GitHub Desktop.

Select an option

Save Nav-Appaiya/649684241f0795a5e3f5 to your computer and use it in GitHub Desktop.
Setting a base path for assets in symfony2 =>{{ asset('css/style.css') }} instead of the full path
framework:
#esi: ~
#translator: { fallbacks: ["%locale%"] }
secret: "%secret%"
router:
resource: "%kernel.root_dir%/config/routing.yml"
strict_requirements: ~
form: ~
csrf_protection: ~
validation: { enable_annotations: true }
templating:
engines: ['twig']
assets_base_urls: /bundles/navapp/
#assets_version: SomeVersionScheme
default_locale: "%locale%"
trusted_hosts: ~
trusted_proxies: ~
session:
# handler_id set to null will use default session handler from php.ini
handler_id: ~
fragments: ~
http_method_override: true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment