Proyectos de Subversion LeadersLinked - Backend

Rev

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

Rev 4661 Rev 4670
Línea 147... Línea 147...
147
        } else {
147
        } else {
148
            return new JsonModel([
148
            return new JsonModel([
149
                'success' => false,
149
                'success' => false,
150
                'data' => 'ERROR_METHOD_NOT_ALLOWED'
150
                'data' => 'ERROR_METHOD_NOT_ALLOWED'
151
            ]);
151
            ]);
152
            ;
-
 
153
        }
152
        }
154
    }
153
    }
Línea 155... Línea 154...
155
 
154
 
156
    public function addAction() {
155
    public function addAction() {
Línea 162... Línea 161...
162
        $request = $this->getRequest();
161
        $request = $this->getRequest();
Línea 163... Línea 162...
163
 
162
 
Línea 164... Línea 163...
164
        if ($request->isPost()) {
163
        if ($request->isPost()) {
-
 
164
            
-
 
165
            $form = new SurveyForm($this->adapter, $currentCompany->id);
-
 
166
            return new JsonModel([
165
            
167
                'success' => false,
166
            $form = new SurveyForm($this->adapter, $currentCompany->id);
168
                'data' => 'test'
167
            
169
            ]);
Línea 168... Línea 170...
168
            $dataPost = $request->getPost()->toArray();
170
            $dataPost = $request->getPost()->toArray();