2017 © Pedro Peláez
 

library acspanel-settings

Settings bundle used by ACSPanel

image

acs/acspanel-settings

Settings bundle used by ACSPanel

  • Friday, January 22, 2016
  • by gtrias
  • Repository
  • 1 Watchers
  • 1 Stars
  • 425 Installations
  • PHP
  • 2 Dependents
  • 0 Suggesters
  • 1 Forks
  • 3 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

PanelSettingsBundle

This bundles enables the ACSPanel settings., (*1)

The file to map the settings needed for the panel is app/main/config/panel_settings.yml. This file defines what are the system settings only editable by the superadmin, the user settings and the internal settings. When you change this file to add new fields the next time one user goes to settings screen the new settings will be generated., (*2)

Install the bundle

Using composer:, (*3)

composer require acs/acspanel-settings

Add the next line to AppKernel:, (*4)

new ACS\ACSPanelSettingsBundle\ACSACSPanelSettingsBundle(),

Setting up

Add the following config lines to configure your app setting entity:, (*5)

acsacs_panel_settings:
    setting_class:        ACS\ACSPanelBundle\Entity\PanelSetting # Required
    settings_class:       ACS\ACSPanelSettingsBundle\Doctrine\SettingManager # Required
    user_fields:
        setting_key:          ~
        label:                ~
        field_type:           ~
        default_value:        ~
        context:              ~
        choices:

            # Prototype
            name:                 []
        focus:                user_setting
    system_fields:
        setting_key:          ~
        label:                ~
        field_type:           ~
        choices:

            # Prototype
            name:                 []
        default_value:        ~
        context:              ~
        focus:                system_setting

Extends your entity from the Bundle entity (Remember to not include id field in doctrine definition), (*6)

use ACS\ACSPanelSettingsBundle\Entity\ConfigSetting;

class UserSetting extends ConfigSetting
{
    ...
}

Add the routes to app/routing.yml, (*7)

acs_settings:
    resource: "@ACSACSPanelSettingsBundle/Resources/config/routing.yml"
    prefix:   /

The Versions

22/01 2016

dev-master

9999999-dev

Settings bundle used by ACSPanel

  Sources   Download

The Requires

 

The Development Requires

07/12 2015

dev-develop

dev-develop

Settings bundle used by ACSPanel

  Sources   Download

The Requires

 

The Development Requires