redirectIfUnlogged(); $pageController = new Page(); $this->response = new \Views\Frontend(); $this->response->data = $pageController->getPageParams(); } public function getBotDetails(): array { $dataController = new Data(); $botId = $this->f3->get('REQUEST.botId'); $hasAccess = $dataController->checkIfOperatorHasAccess($botId); if (!$hasAccess) { $this->f3->error(404); } return $dataController->getBotDetails($botId); } }