extends class Phalcon\Config
implements Countable, ArrayAccess
Source on GitHub
Reads JSON files and converts them to Phalcon\Config objects. Given the following configuration file:
{"phalcon":{"baseuri":"\/phalcon\/"},"models":{"metadata":"memory"}}
You can read it as follows:
$config = new Phalcon\Config\Adapter\Json("path/config.json");
echo $config->phalcon->baseuri;
echo $config->models->metadata;
Methods
public __construct (mixed $filePath)
Phalcon\Config\Adapter\Json con