Blame view

src/vendor/1.2.5/Phalcon/Config/Adapter/Ini.php 886 Bytes
1ea3b987   Administrator   maby first commit
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
  <?php 
  
  namespace Phalcon\Config\Adapter {
  
  	/**
  	 * Phalcon\Config\Adapter\Ini
  	 *
  	 * Reads ini files and converts them to Phalcon\Config objects.
  	 *
  	 * Given the next configuration file:
  	 *
  	 *<code>
  	 *[database]
  	 *adapter = Mysql
  	 *host = localhost
  	 *username = scott
  	 *password = cheetah
  	 *dbname = test_db
  	 *
  	 *[phalcon]
  	 *controllersDir = "../app/controllers/"
  	 *modelsDir = "../app/models/"
  	 *viewsDir = "../app/views/"
  	 *</code>
  	 *
  	 * You can read it as follows:
  	 *
  	 *<code>
  	 *	$config = new Phalcon\Config\Adapter\Ini("path/config.ini");
  	 *	echo $config->phalcon->controllersDir;
  	 *	echo $config->database->username;
  	 *</code>
  	 *
  	 */
  	
  	class Ini extends \Phalcon\Config implements \Countable, \ArrayAccess {
  
  		/**
  		 * \Phalcon\Config\Adapter\Ini constructor
  		 *
  		 * @param string $filePath
  		 */
  		public function __construct($filePath){ }
  
  	}
  }