Proyectos de Subversion LeadersLinked - Backend

Rev

Rev 7375 | Rev 7379 | Ir a la última revisión | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 7375 Rev 7378
Línea 570... Línea 570...
570
        $currentUser = $currentUserPlugin->getUser();
570
        $currentUser = $currentUserPlugin->getUser();
571
        $currentCompany = $currentUserPlugin->getCompany();
571
        $currentCompany = $currentUserPlugin->getCompany();
Línea 572... Línea 572...
572
       
572
       
573
       
-
 
574
        $type   = $this->params()->fromRoute('type');
-
 
575
        if(isset($type)){
-
 
576
            $response = [
-
 
577
                'success' => false,
-
 
578
                'data' => 'hola'
-
 
579
            ];
573
       
580
            
-
 
581
            
-
 
Línea 582... Línea 574...
582
            return new JsonModel($response);
574
        $type   = $this->params()->fromRoute('type');
583
        }
575
       
Línea 584... Línea 576...
584
 
576
 
585
        $request = $this->getRequest();
577
        $request = $this->getRequest();
586
        if($request->isGet()) {
578
        if($request->isGet()) {
587
            
579
            
588
            $page = (int) $this->params()->fromQuery('page');
580
            $page = (int) $this->params()->fromQuery('page');
-
 
581
            $type   = $this->params()->fromRoute('type');
-
 
582
            if(isset($type)){
-
 
583
                $id =  $this->params()->fromRoute('id');
-
 
584
                $type   = $this->params()->fromRoute('type');
-
 
585
                $response = [
-
 
586
                    'success' => false,
-
 
587
                    'data' => 'hola'
589
            $type   = $this->params()->fromRoute('type');
588
                ];
590
            if(isset($type)){
589
                
591
                $id =  $this->params()->fromRoute('id');
590
                
592
                $type   = $this->params()->fromRoute('type');
591
                return new JsonModel($response);
593
            }else{
592
            }else{