示例#1
0
         $homeController->login();
     } elseif ($route[2] == 'forgetPassword') {
         $homeController->forgetPassword();
     }
     $where = $route[2];
     switch ($where) {
         case 'serviceRequest':
             $homeController->serviceRequest();
             break;
         default:
             $homeController->render();
             break;
     }
     break;
 case "workers":
     $workerController = new WorkerController();
     $where = $route[2];
     //var_dump($route);die();
     switch ($where) {
         case 'addNew':
             $workerController->addNew();
             break;
             // addNew is page for addnewworker
         // addNew is page for addnewworker
         case 'addNewWorker':
             $workerController->addNewWorker();
             break;
             //addNewWorker is post worker detail for new worker
         //addNewWorker is post worker detail for new worker
         case 'list':
             $workerController->render();
示例#2
0
         $agentHomeController->login();
     } elseif ($route[2] == 'forgetPassword') {
         $agentHomeController->forgetPassword();
     }
     $where = $route[2];
     switch ($where) {
         case 'serviceRequest':
             $agentHomeController->serviceRequest();
             break;
         default:
             $agentHomeController->render();
             break;
     }
     break;
 case "workers":
     $workerController = new WorkerController();
     $where = $route[2];
     switch ($where) {
         case 'addNew':
             $workerController->addNew();
             break;
             // addNew is page for addnewworker
         // addNew is page for addnewworker
         case 'addNewWorker':
             $workerController->addNewWorker();
             break;
             //addNewWorker is post worker detail for new worker
         //addNewWorker is post worker detail for new worker
         default:
             $workerController->renderAgent();
             break;