public function __construct() { parent::__construct(); if (!isset($_COOKIE)) { throw new UndefinedHttpException("COOKIE"); } else { $this->setAll($_COOKIE); } }
public function __construct() { parent::__construct(); if (!isset($_SESSION)) { throw new UndefinedHttpException("SESSION"); } else { $this->setAll($_SESSION); } }
public function __construct($config_path = '../app/config') { parent::__construct(); $this->_config_path = rtrim($config_path, DIRECTORY_SEPARATOR) . DIRECTORY_SEPARATOR; $this->loadAll(); }