Ejemplo n.º 1
0
             break;
         case 'logout':
             $homeController->logout();
             break;
         case 'forgetPassword':
             $homeController->forgetPassword();
             break;
         default:
             if ($route['2'] == 'createNew') {
                 $projectController->createNewProject();
             } elseif ($route['2'] == 'createProject') {
                 $projectController->createProject();
             } elseif ($route['2'] == 'postProjectComment') {
                 $projectController->postProjectComment();
             } elseif ($route['3'] == 'joinProject') {
                 $projectController->joinProject();
             } else {
                 $projectController->render();
             }
             break;
     }
     break;
 case "activity":
     $activityController = new ActivityController($route[2]);
     $where = $route[2];
     switch ($where) {
         case 'postComment':
             $activityController->postComment();
             break;
         default:
             $activityController->render();