/** * Konstruktor * * *Description* * * @param * * @return void */ public function __construct() { $this->request = array_merge($_GET, $_POST); $this->response = new \Framework\Response(); $this->response->errorReporting(); $this->site = new \View\Site(); $this->entries = new \Model\GetContent(); // Sets the default timezone used by all date/time functions in a script \Framework\Utility::setTimezone(); }
/** * Sende Header-Information * * *Description* Sende Header Information, Ausgabe aller PHP header() * * @param * * @return array */ private function sendAllHeaders() { $this->response->modifyHeader('status', 200); $this->response->modifyHeader('content-type', 'text/html'); $this->response->sendHeaders(); // Sets the default timezone used by all date/time functions in a script \Framework\Utility::setTimezone(); }