Skip to content

youshido-php/Setting

Repository files navigation

Setting Bundle

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>

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages