it-blaster / config-bundle
Symfony2 bundle, adds config list to Sonata
Installs: 125
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 6
Forks: 0
Open Issues: 0
Type:symfony-bundle
Requires
- egeloen/ckeditor-bundle: >=2.0
- it-blaster/translation-bundle: >=1.0.0
- propel/propel-bundle: >=1.0
- sonata-project/propel-admin-bundle: >=1.0
- symfony/symfony: >=2.2
This package is not auto-updated.
Last update: 2024-12-21 19:16:02 UTC
README
Installation
Add to composer.json
and install
{ "require": { "it-blaster/config-bundle": "dev-master" }, }
Add bundle to AppKernel.php
<?php // app/AppKernel.php public function registerBundles() { $bundles = array( // ... new ItBlaster\ConfigBundle\ItBlasterConfigBundle(), ); }
Build models
$ php app/console propel:build
Usage
Use get
method wherever you need
$value = Config::get('config_key', $request->getLocale());
Twig function:
{{ config('social_twitter_link', app.request.locale) }}