Configs provide the framework with various configuration values. They interface directly with the Registry to establish values that can be accessed from anywhere within the framework. Like templates, they are not class-based.
It is the job of the Loader to fetch configuration files. For example, on startup the framework requests the system configuration file, core.php, with the following call: Loader::get('config', 'core');. This config file sets an array of values to the Registry::$config static variable, which the framework can then access as it wishes.
© Copyright 2010 negative11.com