- Installation
- General usage
- Scopes
- Advanced configuration
- I18n
- Customization
- FAQ
-
Add the following to your
composer.json
file:// composer.json { "require": { // ... "dmishh/settings-bundle": "2.0.*@dev" } }
-
Update dependencies, run from command line:
php composer.phar update
-
Register the bundle in your
AppKernel.php
file:<?php // in AppKernel::registerBundles() $bundles = array( // ... new Dmishh\SettingsBundle\DmishhSettingsBundle(), );
-
Update your database for creating settings table:
php app/console doctrine:migrations:diff php app/console doctrine:migrations:migrate
- Manually:
php app/console doctrine:schema:update --force
-
Add following lines to your app/config/routing.yml (see how to override default routing and controller):
settings: resource: "@DmishhSettingsBundle/Resources/config/routing.yml" prefix: /settings
-
Configure first setting, add to app/config/config.yml:
dmishh_settings: settings: my_first_setting: ~
-
Open http://YOUR-PROJECT-URL/app_dev.php/settings/global and start managing your settings!
Note: If you're using Symfony 3, please see the instructions in Advanced configuration.