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
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: 2024-11-09 18:32:53 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>