Most voted "mvc" questions
Model-view-controller (MVC) is a model of software architecture that separates information representation from user interaction with it.
Learn more…743 questions
Sort by count of
-
3
votes1
answer55
viewsIs there any way I can save a site from a published user PC file?
I am creating a zipped file and need to save it to my user, only when I select the location where q is saved the file it saves on the server where the site is hosted. Way string zip =…
-
3
votes1
answer230
viewsProblem switching from Controller to Model
I’m making a code where it involves MVC. To get past the View to the Controller I’m not having problems, but when will I pass the Controller to the Model I can’t do it, the variable is imported, but…
-
3
votes1
answer296
viewsCan I consider that my application is in MVC?
Personally, I’m kind of having a conceptual doubt. I started implementing my application (c# - Forms) thinking of following development based on the MVC architecture. But intuitively - and I don’t…
-
3
votes3
answers239
viewsReusability of the Control
I came across the following phrase using MVC: "(...) the View and Controller Objects are specifically Written to each type of interface (and technology), and are generally not reusable between…
mvcasked 8 years, 4 months ago R. Carvalho 158 -
3
votes1
answer61
viewsModel/View Programing - WPF and Mysql
I had already made some programs in C++ using the QT framework and its Model/View Programming(http://doc.qt.io/qt-4.8/model-view-programming.html). The concept was simple: created a template that…
-
3
votes1
answer184
viewsViewdata["Errormessage"] does not appear in view
Hi, I’m new to c# and would like to know why my Viewdata["Errormessage"] does not appear in my view. Controller: ViewData["ErrorMessage"] = "O e-mail digitado já se encontra registrado em nossa base…
-
3
votes2
answers906
viewsWhat’s the best way to call files?
Well, I use codeigniter (but not specifically in it, anyone who is MVC). I wanted to know the best way to call my files, css, js, fonts, etc. I think the best way is to call in the controller…
-
3
votes2
answers676
viewsInc and MVC extension in PHP
I know you don’t have to use codenames inc and class in the name of the files, but because of the same organization is recommended. The doubt is due to the fact of the codename class it is easy to…
-
3
votes2
answers3254
viewsAngular.js, is it MVC, MVVM or MVP?
I know that in angular projects has model, view and controller but many say that angular.js is MVVM and others say it is MVP
-
3
votes3
answers785
viewsHow to treat the logged-in user in a MVC system?
I’m creating a MVC framework a few weeks (developing it and using it at the same time), I arrived at the part of creating the authentication system. So I’d like to create a way for me to configure…
-
3
votes2
answers244
viewsHow to inject a variable into a page that was required by a function
I have the following problem, I am using an MVC model for a CMS in PHP study, but I would like it to be possible to use themes, for this I created a configuration variable that stores the theme name…
-
3
votes1
answer580
viewsPass Parameters to Store Procedure
Follow the Search Function Code public List<Pessoa> Buscar(string Nome) { using(var db = new MyContext()) { var Result = db.Database.SqlQuery<Pessoa>("EXEC SP_Busca_Cliente @Nome",…
-
3
votes1
answer113
viewsController needs to be a class?
The controllers within an MVC, must they be classes? Because from what I’m seeing here, their only function is to take the information that the view You’re asking, play for model "solve the problem"…
-
3
votes1
answer222
viewsPage Controller Pattern vs Front Controller
What is Page Controller? What is Front Controller? From what I read, page controller means a controller that is embedded in the html/jsf page facelet. However in the Front Controller the controller…
-
3
votes1
answer55
viewsValidate form data with registration in the database
I am developing with ASP.NET MVC (using ENTITIES/DAL/LOGIC - layers) and I wanted to know better how to validate data form (of the website)to be registered in the database? I have in the DAL layer…
-
3
votes2
answers1048
viewsHow to understand MVC architecture at Angular 4?
I studied the Angular Js 1.x and I was able to understand perfectly where the architecture fits MVC in the framework, but I didn’t feel the same Angular 4. Yeah, I know, that’s pretty crazy, but…
-
3
votes2
answers3686
viewsDownload file via Ajax
In my Asp.Net MVC 4 project, I have a View with a button and the following script: <input type="button" value="Teste" id="baixarArquivo" /> <script> (function () {…
-
3
votes1
answer165
viewsDropdownlist in C# with Htmlhelper
I’m new here and also new to the universe ASP.NET. I’m having a hard time creating a DropDownList for a form on a web page with ASP.NET MVC and C#. I made a user registration form and one of the…
-
3
votes1
answer539
viewsMVC and DAO standard
I have a layered system. I’m using MVC and inside the MODEL folder I have a DAO folder. Let’s assume I have a file called Professor_dao and another one called Aluno_dao. Question: Can I include the…
-
3
votes2
answers444
viewsMVC + DAO - Which way should I choose in PHP?
In Java, in the model class I can create in the class funcionario the attribute Setor s, but PHP is not typed, as I could solve this association case? After some searches here on the site, I saw…
-
3
votes1
answer441
viewsGeneric Dbcontext Dbset Method with Entity Framework
I have an application in C# using Entity Framework. All of mine DbSet of DbContext, I extend them to have a default search for the grid, below example of the method. public static GridDTO…
-
3
votes1
answer13619
viewsHow popular is a select with Jquery, JSON and AJAX ? (MVC)
I followed some codes I found here of how popular a selectbox, but it is not working, is it missing something ? I’m getting a list of data with my Controller. Javascript $(document).ready(function…
-
3
votes1
answer165
viewsIn MVVM can a Viewmodel know more than one model?
In the MVVM architecture, a viewmodel can "meet" several viewmodels. What about the VM-M relationship? A viewmodel can "meet" several models different? Ex: CreditCardViewModel --> Model…
-
3
votes2
answers674
viewsHow to use "echo" in an Laravel view?
I’m hoping that in mine layout blade echo only if the variable $errors is defined: @section('mensagens') <div class="container"> <div class="row"> <div…
-
3
votes0
answers32
viewsDoubt in the MVC standard: should one service talk to another directly?
It is correct for one service to talk to another directly through dependency injection, or who should manage this communication is the controller. Ex.: I have a service(A) that needs a data obtained…
-
3
votes0
answers454
viewsHTTP Status 500 - Request Processing failed; nested Exception is java.lang.Illegalargumentexception: Datasource must not be null
When making a query in a dao class, the following error appears: my spring-context.xml is: <mvc:interceptors> <bean…
-
3
votes2
answers1193
viewsASP . NET MVC 5 - Dropdownlist with Modelstate?
I am developing a registration system using MVC5 with DAO, but there were some doubts that I could not resolve. I have a table where I register Projects and another one where the types of Projects…
-
3
votes2
answers67
viewsRoute c# redirecting to wrong action
I have an action that returns a Partialview [HttpPost] public ActionResult SelectCidadesPorCodigoUF(int idUF) { //It do something and returns a PartialView } This action is mapped as follows:…
-
3
votes0
answers40
viewsError while doing image update in database
Notice: Undefined index: flefoto in C: xampp htdocs Inf4m asteroide controllers usuario_controller.php on line 17 Notice: Undefined index: flefoto in C: xampp htdocs Inf4m asteroide controllers…
-
3
votes1
answer182
viewsJavafx: pros and cons of MVC, MVP, MVVM, etc
Which Model-View (MV) standard to use with Javafx thinking of scalability and good maintainability? On Google you find people recommending MVC, MVP, MVVM... maybe there are others. Some say that…
-
3
votes3
answers666
viewsASP.NET - How to use multiple post methods in the same controller?
I have the following problem: On a given HTML page I have two buttons that call different POST methods in the same controller. @using (Html.BeginForm("UserInfo1", "UserInfo", FormMethod.Post)) {…
-
3
votes0
answers467
viewsCall to a Member Function cadastrarDados() on null - Laravel
Good morning to all, I am developing an application in Laravel 5.6 using PHP 7.2, I am having problems using DI(dependency Injection) in the constructor, since when creating the object manually the…
-
3
votes2
answers243
viewsAggregation of Codeigniter objects 3
I have a question related to the aggregation of objects using Codeigniter 3.1.9. I have the following method in Model: public function get_tickets($where = array()) { $this->db->select('*');…
-
3
votes1
answer54
viewsDatabase is not connecting!
My database isn’t connecting. When doing a refctoring of my code following the MVC standard the database stopped working. Follow link with the test files:…
-
3
votes2
answers319
viewsHow to scroll through an enumerable list and check if the property repeats in the list during foreach turns
I have a list (IEnumerable) called People that contains the properties Id, Datanasc, etc... I need to bring this data to a listview in the html using the Razor (or it can be outside the cshtml page,…
-
3
votes0
answers64
viewsDatabase for Resumes
Good afternoon, I’m doing my TCC project for a HR system, only I have a question while storing resumes. In which there will be a form where the user registers his information, and if you want to add…
-
2
votes1
answer1044
viewsReturn javascript result with controller
It is possible within a Controller to return a javascript action and proceed with the controller script ? Example: Call to Login page: <li><a href="javascript:" link="{{ route('login') }}"…
-
2
votes1
answer259
viewsHow to pass an SQL expression for an UPDATE to Zend?
My Mysql DBMS has a table called elements where one of the fields is called posicao and is like int (6). I need to update (SQL) where the field posicao shall be updated with its own value by…
-
2
votes1
answer1095
viewsHow to pass data to all views in a MVC pattern?
I’m building a small MVC application with PHP, following directory structure: controllers/ (Controller files) views/ (View files) In each controller, I pass an instance of the Object VIEW with an…
-
2
votes2
answers1179
viewsHow does MVC layer-to-layer communication work?
I started studying MVC, but I’m still in theory and I was wondering how the conversation between the layers works in practice. One could give an example of C# code without using the MVC framework?…
-
2
votes2
answers491
viewsBest Way to Pass Data to All MVC Controllers
After logging in via controller LOGIN, a Session is created with the ID of that user in the system, from that ID can give a "fetch" with all your information, the big problem is that when you log in…
-
2
votes2
answers264
viewsSingle database instance
I have a controller and need to access 2 or more tables from my database, ex: $userModel = loadModel('userModel'); $userModel->setTable('users'); $userModel->getAllUser(); $outroModel =…
-
2
votes1
answer123
viewsCustomize windows authentication
I’m creating an app where I use Windows Authentication for validation of user data. As soon as the application opens, some information from that logged-in user already appears on the first page. In…
-
2
votes2
answers942
viewsMulti Language ASP.NET MVC
I have an ASP.NET MVC application. And I need to make it multi-language, using a database. I thought of two approaches: Livro Titulo Subtitulo Idioma OR Livro Titulo TituloEN Subtitulo SubtituloEN…
-
2
votes1
answer834
viewsIs it advantageous to use the MVC standard in small applications?
I’ve read several articles related to MVC, its advantages in maintaining reusability codes and everything else. But the question is, in small applications it is worth using this standard, because…
-
2
votes3
answers226
viewsLink structure problems in MVC
I am working on an MVC project and I am having problems redirecting pages. The project is based on controllers and actions, that I have the proper functions that call these files and call their…
-
2
votes1
answer163
viewsDoubt filter with Line, ASP NET MVC
I have a question on a filter using Linq, I have a critical object Inside criticism has a ienumerable I need to return a list of criticisms that the status of the last critical move equals 2 But the…
-
2
votes1
answer323
viewsGood MVC practice
I’m starting a project now a bit big, and I chose to use the MVC structure. I created the entire backoffice base in a folder, but when creating it came to me the following question: Should I create…
-
2
votes1
answer106
viewsMultiple foreach inserts in MVC
I have an application that receives several observations from a view and need to insert this into a table of observations. I want to know if in this case, controller is who makes the foreach and…
-
2
votes1
answer146
viewsCan the controller send an email?
In a controller called activities, I have a method called reminder. This method, receives an id, looks for that activity based on that id and sends an email to the moderator of that activity with…