public function route() { //router laden //parent::route(); if ($this->state !== "offline") { $this->router = ECPFactory::getRouter(); $this->router->parse(); $this->state = "routed"; } }