2017 © Pedro Peláez
 

cakephp-plugin setting

Setting: Database driven setting plugin for CakePHP.

image

k1low/setting

Setting: Database driven setting plugin for CakePHP.

  • Thursday, December 25, 2014
  • by k1LoW
  • Repository
  • 2 Watchers
  • 5 Stars
  • 324 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Setting: Database driven setting plugin for CakePHP.

Build Status Coverage Status, (*1)

Install

First, Install 'Setting' by recipe.php , and set CakePlugin::load('Setting', array('bootstrap' => true));, (*2)

Second, Create schema., (*3)

./lib/Cake/Console/cake schema create settings --plugin Setting

Usage

Init

Configure Setting.settings like Model::validate., (*4)

Configure::write('Setting.settings', array(
                                           'tax_rate' => array('rule' => array('numeric')),
                                           ));

Set setting

Setting::setSetting([key], [value]) or Setting::setSetting(array([key1] => [value1], [key2] => [value2])), (*5)

Get setting

Setting::getSetting([key]) or Setting::getSetting(), (*6)

If you want not to use Setting (settings table)

See SystemControlTest.php., (*7)

License

the MIT License, (*8)

The Versions

25/12 2014

dev-master

9999999-dev https://github.com/k1LoW/Setting

Setting: Database driven setting plugin for CakePHP.

  Sources   Download

MIT

The Requires

 

The Development Requires

cakephp setting

25/12 2014

2.0.0

2.0.0.0 https://github.com/k1LoW/Setting

Setting: Database driven setting plugin for CakePHP.

  Sources   Download

MIT

The Requires

 

The Development Requires

cakephp setting