Exemple #1
0
 /**
  * Construct TipyConfig instance from parsed config.ini
  */
 public function __construct()
 {
     parent::__construct();
     defined('INI_FILE') || define('INI_FILE', getcwd() . '/../config.ini');
     $iniData = parse_ini_file(INI_FILE);
     $this->bind($iniData);
 }
Exemple #2
0
 /**
  * Construct TipyRequest instance from $_SERVER
  */
 public function __construct()
 {
     parent::__construct();
     // little hack to autocreate $_SERVER if
     // auto_globals_jit is on
     $foo = $_SERVER['PHP_SELF'];
     $this->bind($_SERVER);
 }
Exemple #3
0
 /**
  * Construct TipyInput instance from $_REQUEST
  */
 public function __construct()
 {
     parent::__construct();
     $this->bind($_REQUEST);
 }