Questions tagged as 'mvc'

1
answer

Problem passing parameter via GET MVC

I can not get the values by GET within a controller or action , example: Does not work: example.com/controller/?q=nome example.com/controller/action/?q=nome It works: example.com/?q=nome OBS: POST type parameters work...
asked by 21.05.2014 / 19:36
2
answers

How does the communication between the layers in MVC work?

I started to study MVC, but I'm still in theory and I was wondering how the conversation between the layers works in practice. Could anyone give an example C # code without using the MVC framework? Note: Before I suggest, I've already seen th...
asked by 14.05.2014 / 19:50
1
answer

How to pass data to all views in an MVC pattern?

I'm building a small MVC application with PHP , following directory structure: controllers / views / (Views files) In each controller, I pass an instance of the VIEW object with an array with data to be able to use it in the...
asked by 26.04.2014 / 05:17
1
answer

Multiple insertions via foreach in MVC

I have an application that receives several observations from a view and needs to insert this into a table of observations. I want to know if in this case, controller is who does foreach and then calls the method in the model to in...
asked by 04.12.2014 / 15:21
0
answers

Call to a member function cadastrarDados () on null - Laravel

Good morning everyone, I'm developing an application in Laravel 5.6 using PHP 7.2, I'm having problems using the dependency injection in the constructor, since when creating the object the algorithm works perfectly, This DOES NOT work: C...
asked by 06.11.2018 / 11:52
1
answer

How to pass an SQL expression to an UPDATE by Zend?

My MySQL DBMS has a table called elements where one of the fields is called posicao and is of type int (6) . I need to perform an update (SQL) where the posicao field should be updated with its own value subtracting 1 acco...
asked by 14.03.2014 / 23:20
1
answer

What is the life cycle of an HTTP request in MVC standards?

I've been developing in ASP.NET MVC5 for 1 year and 2 months, and until today I can not figure out who's calling. Searching further, I found this answer that says (in free translation):    Life cycle of an HTTP request:       The user make...
asked by 02.05.2018 / 16:32
0
answers

What is the best technique for using ViewModel with mvc C # lists?

I have two templates: event registration package and subscription package, where the template event registration package has a list of subscription packages (see the code below, I removed some fields). //Model public class PacoteInscricaoEvent...
asked by 09.01.2018 / 13:37
0
answers

MVC programming in PHP [closed]

Good afternoon, I have a question about an exercise that I had taken in the course. I need to make the updated text a hyperlink that goes back to hello word , creating a loop between them, ie (hyperlink) > updated text (hyperlink) &g...
asked by 22.02.2017 / 18:01
1
answer

java library error in project

The libraries of my project are not importing the classes of * util and several others too, I do not know what is happening, because when I create a new project these classes and libraries work. Below an error print. I've tried to clean the e...
asked by 24.10.2016 / 19:58