Questions tagged as 'mvc'

1
answer

Save ID in related table from the main table

I have three tables in my database: At first, I only had the contratos table and recently I needed to add the other two tables, as you will see, there is a field in pagos which is related contratos by fk ....
asked by 25.12.2017 / 23:17
1
answer

Pass controller variable to the view

I put this as an example of what I want to do: public function imagenPerfilusuarioController(){ if(isset($_POST['btnmodimgu'])){ $respuestaver=Datos::verimagenPerfilusuarioModel($datosController,"usuarios"); if (isset($respues...
asked by 22.08.2017 / 02:11
1
answer

Problem with variable razor mvc

I have an EsperRule clas which has some properties, among them another EsperRule, my goal is to show all the data of the EsperRule and in case the other EsperRule is different from null, show the data of that and so on. I did something like t...
asked by 12.09.2017 / 15:18
3
answers

Controller in MVC for the same Model but different role

Good morning, I am studying and I do not have much idea of how to do the following: I have products as an entity. In the MVC model I have its Controller and its ProductViewModels. Well I have used this for the Admin, this create modifies and...
asked by 20.07.2017 / 08:01
1
answer

Error "Undefined property:" in php

   (!) Notice: Undefined property: stdClass :: $ documentP in   C: \ wamp64 \ www \ mathematchy \ mathematchy \ controller \ logincontroller.php   online 48 I submit this error when I try to make another login on my page (localhost) ....
asked by 30.03.2017 / 04:28
2
answers

close session in mvc 4

I can not close an open session. I use this method but it DOES NOT WORK. <a> href="@Url.Action("CerrarSesion","Home")"> <i class="icon-key"></i> Cerrar Sesión </a> Here I have the driver. <HttpPost()>...
asked by 07.12.2016 / 00:25
1
answer

Doubt of foreach in php

I have a question about filling a table through an array with a foreach. If I do it without a function, it does show me the expected result, but what I want is to use it as a function. For the moment I left it like this: <?php require_on...
asked by 17.12.2016 / 10:21
1
answer

values from the checkbox list send null

I have a checkbox list that feeds from a query to a database and so far well. But when sending the values of the checkbox, I send them to the controller and I would like to know how I can solve this or how to do it. It should be noted that the c...
asked by 13.09.2016 / 20:45
1
answer

Problem with JButtton update MySQL

I have this method to update the elements of a table in a class that is responsible for controlling the events of the Jframe : if(e.getSource()== estMostrar.getBtnModificar()){ int fila= estAdmin.getTablaEstudiante().getSelectedRo...
asked by 10.09.2016 / 21:30
1
answer

Assign a DefaultTableModel to a JTable (MVC)

I have a class designed to handle the events of the frames that I have created, that allows me to play with them and not instantiate code in their structure, to maintain a relationship Vista, Model, Controller . Within the mainframe I have a...
asked by 10.09.2016 / 22:14