$where = $route[3]; switch ($where) { case 'activities': $profileController->getNextActivities(); break; case 'ideas': $profileController->getNextIdeas(); break; case 'projects': $profileController->getNextProjects(); break; case 'forgetPassword': $homeController->forgetPassword(); break; case 'sendLinkRequest': $profileController->sendLinkRequest(); break; case 'confirmLinkRequest': $profileController->confirmLinkRequest(); break; case 'deleteLinkRequest': $profileController->deleteLinkRequest(); break; default: if ($route[2] == 'activities') { $profileController->getNextActivities(); } else { if ($route[2] == 'ideas') { $profileController->getNextIdeas(); } else { if ($route[2] == 'projects') {