public function GETlogin($status = "default") { \bloc\Application::instance()->getExchange('response')->addHeader("HTTP/1.0 401 Unauthorized"); $messages = ['default' => 'Request Token', 'invalid' => 'ID malformed', 'duplicate' => 'A password link was alread sent (you can still use it).', 'instructor' => 'Check Credentials']; $view = new \bloc\View(self::layout); $view->content = "views/layouts/forms/authenticate.html"; if ($status == 'instructor') { $view->user = \bloc\dom\Document::ELEM('<input type="text" value="" name="uid" placeholder="instructor"/>'); } $this->status = $messages[$status]; return $view->render($this()); }