Skip to content
/ core Public

[READ-ONLY] CakePHP Framework Core Classes. This repo is a split of the main code that can be found in https://github.com/cakephp/cakephp

License

Notifications You must be signed in to change notification settings

cakephp/core

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Total Downloads License

CakePHP Core Classes

A set of classes used for configuration files reading and storing. This repository contains the classes that are used as glue for creating the CakePHP framework.

Usage

You can use the Configure class to store arbitrary configuration data:

use Cake\Core\Configure;
use Cake\Core\Configure\Engine\PhpConfig;

Configure::write('Company.name','Pizza, Inc.');
Configure::read('Company.name'); // Returns: 'Pizza, Inc.'

It also possible to load configuration from external files:

Configure::config('default', new PhpConfig('/path/to/config/folder'));
Configure::load('app', 'default', false);
Configure::load('other_config', 'default');

And write the configuration back into files:

Configure::dump('my_config', 'default');

Documentation

Please make sure you check the official documentation

About

[READ-ONLY] CakePHP Framework Core Classes. This repo is a split of the main code that can be found in https://github.com/cakephp/cakephp

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages