Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
B
backend-mcafee
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Cristian Mauricio Diaz Canales
backend-mcafee
Commits
778c4531
Commit
778c4531
authored
Oct 22, 2020
by
Cristian Mauricio Diaz Canales
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#7 Se agrega error a pagina de prueba front
parent
762a7c25
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
1 deletion
+12
-1
src/CampaniaFrontBundle/Controller/CampaniaFrontController.php
...ampaniaFrontBundle/Controller/CampaniaFrontController.php
+12
-1
No files found.
src/CampaniaFrontBundle/Controller/CampaniaFrontController.php
View file @
778c4531
...
...
@@ -4,6 +4,7 @@ namespace CampaniaFrontBundle\Controller;
use
Symfony\Bundle\FrameworkBundle\Controller\Controller
;
use
Symfony\Component\HttpFoundation\Request
;
use
Symfony\Component\HttpFoundation\JsonResponse
;
use
AppBundle\Lib\Utiles
;
...
...
@@ -11,7 +12,17 @@ class CampaniaFrontController extends Controller {
//BORRAR LUEGO, SOLO PRUEBA DE CARGA FRONT UTILIZANDO TWIG Y LLAMANDO A ENDPOINT EN NODEJS
public
function
cargarHtmlFrontAction
(
Request
$request
)
{
$data
=
array
(
'uid'
=>
$request
->
get
(
"uid"
,
null
));
$uid
=
$request
->
get
(
"uid"
,
null
);
if
(
$uid
==
""
||
$uid
==
null
){
$jResponse
=
new
JsonResponse
();
$jResponse
->
setStatusCode
(
JsonResponse
::
HTTP_BAD_REQUEST
,
'- UID EMPTY'
);
$jResponse
->
setData
(
array
(
"status"
=>
JsonResponse
::
HTTP_BAD_REQUEST
,
"msg"
=>
"ID de la campaña no válido..."
));
return
$jResponse
;
}
$data
=
array
(
'uid'
=>
$uid
);
$data_json
=
json_encode
(
$data
);
$username
=
Utiles
::
getParametroConfiguracion
(
"basic_auth_user_api"
);
$password
=
Utiles
::
getParametroConfiguracion
(
"basic_auth_password_api"
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment