/** * 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); }
/** * 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); }
/** * Construct TipyInput instance from $_REQUEST */ public function __construct() { parent::__construct(); $this->bind($_REQUEST); }