youshido/settings

Bundle for easy integrations default site settings

Installs: 175

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 4

Forks: 0

Type:symfony-bundle

1.0.0 2015-07-30 13:04 UTC

This package is not auto-updated.

Last update: 2024-12-21 18:59:33 UTC


README

Bundle used to set default parameters for everything

##Installation:

Import in your config.yml:

twig:
    #...
    
    globals:
        defaults: @ysettings

Import to admin structure.yml file:

This config use only in pair with YoushidoAdminBundle

imports:
    #...
    
    - { resource: ../../vendor/youshido/settings/Resources/config/admin/structure.settings.yml }

##Use it:

Use in controller:

$this->get('ysettings')->getParameter($key, $defaultValue);

Use in twig:

<title>{{ defaults.parameter(key) }}</title>