vincet / admin-configuration-bundle
Symfony VinceTAdminConfigurationBundle
Installs: 419
Dependents: 1
Suggesters: 0
Security: 0
Stars: 3
Watchers: 4
Forks: 0
Open Issues: 1
Type:symfony-bundle
Requires
- php: >=5.3.2
- trsteel/ckeditor-bundle: dev-master
- vincet/admin-bundle: dev-master
- vincet/base-bundle: dev-master
- vincet/bootstrap-form-bundle: dev-master
This package is auto-updated.
Last update: 2023-07-27 08:49:03 UTC
README
This bundle add an admin interface to manage custom configuration values that can be used in your frontend application.
A configuration value is store in a group and a group rely to a section. It's easy to get a configuration value by its path :
section_name:group_name:value_name
To retrieve a value from a controller:
$this->container->get('admin.configuration.manager')->get('section_name:group_name:value_name');
To retrieve a value from a twig template:
{{ admin_configuration_get('section_name:group_name:value_name') }}