youshido-php / Setting

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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


Languages

Language:PHP 100.0%