SearchTable Of ContentsPrevious topicClass Phalcon\Cache\Frontend\Output Next topicClass Phalcon\Config\Adapter\Ini This Page |
Class Phalcon\Config¶Phalcon\Config is designed to simplify the access to, and the use of, configuration data within applications. It provides a nested object property based user interface for accessing this configuration data within application code. <?php
$config = new Phalcon\Config(array(
"database" => array(
"adapter" => "Mysql",
"host" => "localhost",
"username" => "scott",
"password" => "cheetah",
"name" => "test_db"
),
"phalcon" => array(
"controllersDir" => "../app/controllers/",
"modelsDir" => "../app/models/",
"viewsDir" => "../app/views/"
)
)); Methods¶public __construct (array $arrayConfig) Phalcon\Config constructor public static Phalcon\Config __set_state (unknown $data) Restores the state of a Phalcon\Config object |