Nav-Appaiya
5/24/2015 - 2:59 PM

Setting a base path for assets in symfony2 =>{{ asset('css/style.css') }} instead of the full path

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