Questions tagged as 'controller'

1
answer

calculate values in a view

Hi, I have a view in which I filter students per month. And I have some doubts: 1) The most important thing is that I calculate the total number of students enrolled and that I add the amounts of the selected month  When I make a dd...
asked by 03.04.2017 / 01:39
2
answers

Area routing problem using MVC .Net

I am working on a project that has a presentation layer with several Areas, and it is difficult for me to test the application, since the controllers and views that I am developing, are in a defined area. I was looking for information about w...
asked by 19.01.2017 / 16:57
3
answers

show loading image

display a loading image or a loading message while loading all products brought from the controller .controller('productosCtrl', function($scope, $http, $q, $location, $ionicLoading, Productos) { Productos.productos().then(function(argumen...
asked by 20.10.2016 / 05:22
1
answer

Problems with a view, with create () and store () methods

I have a Controller to add an "Annotation" to a student, which receives "student_id", "id_asignatura" and "id_profesor", but I have problems in the view, since it only shows me the "id" in the fields and even though I change parameters it does n...
asked by 08.03.2017 / 15:17
1
answer

Use variable located in the angularjs driver in the html!

I have the following doubt I am receiving data as follows: var Getcola= JSON.stringify(response.data); localStorage.setItem("GetMycola", Getcola); var cola1= localStorage.getItem("GetMycola"); var Mycola = JSON.parse(cola1...
asked by 21.09.2016 / 20:58
0
answers

Laravel-How can I insert in tables with many-to-many relationship when I have foreign keys created in mysql through migrations?

When I submit the form, it shows me this: error: Integrity constraint violation: 1452 Can not add or update to child row: a foreign key constraint fails (bolsa_empleo.aplicante_empleo, CONSTRAINT aplicantes_empleo_aplicante_usuario_id_foreign FO...
asked by 02.10.2018 / 14:08
2
answers

Load view in a modal with Ajax

Hello! You see ... I have a dilemma with the load of a file (view) that I need will be in the body of a modal , since, this will be the beginning to be able to show information later. As such, I have the following. In my view Li...
asked by 22.12.2017 / 20:29
1
answer

How to get the value of the attributes of a form with spring?

I have a form, in which I want to retrieve the values entered in the fields, I have the following code in the controller @RequestMapping(value= "/views/consulta", method = RequestMethod.GET) public String redireccionaConsultaPage(Locale locale...
asked by 30.05.2018 / 06:17
1
answer

Define a global variable to be used in several views independent of the controller of each view

I need to declare a globlal variable, something similar to: $user = Auth::user(); I am consuming an API and I need to get the $user variable in the login form in a global way to use it in the whole app. I am not very familiar with th...
asked by 03.08.2017 / 00:49
1
answer

Pass two variables to a method in laravel

Help I'm stuck in a part of my project, I'm doing an intranet for a Lyceum. The subject is that I want to place an "Observation" to a Student, for this I need the "id" of the Student, the "id" of the Subject, and the "id" of the Teacher that is...
asked by 08.03.2017 / 01:09