2017 © Pedro Peláez
 

symfony-bundle symfony-setting-bundle

Bundle for Symfony2 to store site settings in database table

image

webmakers/symfony-setting-bundle

Bundle for Symfony2 to store site settings in database table

  • Friday, August 23, 2013
  • by khal3d
  • Repository
  • 1 Watchers
  • 0 Stars
  • 39 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 2 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Symfony Setting Bundle

Bundle for Symfony to store the application settings in database table, (*1)

Installation

Let Composer download and install the bundle by first adding it to your composer.json in your composer.json:, (*2)

{
    "require": {
        "webmakers/symfony-setting-bundle": "dev-master"
    }
}

and then running, (*3)

// In shell
composer update webmakers/symfony-setting-bundle

Note that once we had a stable version tagged you should use a tagged release instead of the master branch., (*4)

Enable the bundle

// in app/AppKernel.php
public function registerBundles() {
    $bundles = array(
        // ...
        new Webmakers\SettingBundle\WebmakersSettingBundle(),
    );
    // ...
    return $bundles;
}

Create the table

// In shell
php app/console doctrine:schema:update --force

Usage

Controller

$this->get('wm.setting')->getSetting('SETTING_NAME');

Twig

{{ get_setting('SETTING_NAME') }}

The Versions

23/08 2013

dev-master

9999999-dev http://github.com/Webmakers/symfony-setting-bundle

Bundle for Symfony2 to store site settings in database table

  Sources   Download

MIT

The Requires

 

settings config options customize preferences