youshido / settings
Bundle for easy integrations default site settings
1.0.0
2015-07-30 13:04 UTC
Requires
- php: >=5.4
- doctrine/doctrine-bundle: ~1.3
- stof/doctrine-extensions-bundle: ^1.1
- symfony/form: ~2.3
- symfony/framework-bundle: ~2.3
This package is not auto-updated.
Last update: 2026-03-01 01:46:20 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>