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
-
2
votes1
answer1588
viewsMVC - Doubt about controller and view PHP
I’m studying MVC a few days ago and I came across a question, I need a view to register, but this view would not do anything just send the data my doubt is that I need a control just to set up this…
-
2
votes1
answer878
viewsWhy does creating the model not create Migration for me?
I’m starting at Laravel 5 and then this tutorial. By creating the model php artisan make:model Tarefa he does not create me to Migration in database/migrations/ as it would be supposed, someone…
-
2
votes1
answer198
viewsError of Session in user level validation
Good guys I am making a simple panel more with user level where I pass to the Session an array with three values, so far so good, the functions that validate the form, validates the bank user,…
-
2
votes0
answers103
viewsSort chained list in MVC standard project
In my project I am using my own chain list implementation, that is, I am not using the ready list of the Java API. In addition, my implementation is of a generic list, which has Object objects on…
-
2
votes1
answer331
viewsMVC C# How to force SSL - too_many_redirects
I am trying to force SSL use of my MVC WEB application. I’ve tried with redirect on the global wing, but it goes into too_many_redirects lopping. protected void Application_BeginRequest(Object…
-
2
votes1
answer254
viewsModel, View and Controller "Multipurpose" - Laravel 5.1
Good morning, I have in my application 10 different tables, but it has the same structure... id | nome | descricao. For each table I have in the Model, the Controller and the Views registration,…
-
2
votes1
answer153
viewsCan a Model use a Webservice for "business rules"?
When using some ready-made frameworks (such as Laravel and Codeigniter), I noticed that Models are usually extended from other classes that usually connect directly to the database, so I understood…
-
2
votes3
answers1052
viewsValidation of MVC forms - PHP
To validate forms with the concepts of MVC, it would have to be in the Controller, Model, or View? Researching in internet I’ve seen some articles on the subject, but some recommend doing model…
-
2
votes1
answer436
viewsIs MVC viable and recommended in Android projects?
I am working on a mobile project where it is necessary to migrate a legacy application, which was developed to Windows Mobile 6.1 (handheld), to the Android. This application has been developed…
-
2
votes1
answer340
viewsExpand MVC structure and modularize by files?
I’m trying to understand the pattern MVC and created an example with CRUD users (with login), but I don’t know if it’s the best way I’ve created. Follow a few pages and the link to download the…
-
2
votes1
answer849
viewsLaravel - Return HTML or JSON in the same Method
I’m starting with Laravel, seeing from Rails, where to return a JSON I just put . json in the url, the return processing is obviously in the Controller. My question is how to do something like…
-
2
votes1
answer576
viewsIn an MVC project, where should I leave the enums?
I am developing a program with MVC standard, I needed to create some enum, and left them in the layer Model, but I was in doubt about its location, which would be the most correct layer to house the…
-
2
votes3
answers198
viewsController with Repository, Ioc and DI
I’m trying to implement the recording of my views, Usuario repository in my controller, even using dependency injection examples, because in my user’s repository constructor it expects to receive an…
-
2
votes1
answer80
viewsJava library error in project
The libraries of my project are not importing the classes of *util and several others also, I do not know what is happening, because when I create a new project these classes and libraries work.…
-
2
votes0
answers129
views -
2
votes2
answers1892
viewsHow do I use "include/require" in Codeigniter the right way?
I’m migrating from the PHP to the CodeIgniter, and would like to know, how to use the include or require right in my code?
-
2
votes1
answer279
viewsHow to assign a default date value to a Textboxfor?
I own the following Textboxfor @Html.TextBoxFor(model => model.data, "{0:dd/MM/yyyy}", new { @class = "form-control", @alt = "date", @placeholder = DateTime.Now.Date.ToString("dd/MM/yyyy"),…
-
2
votes2
answers482
viewsAvoid permanent connections and Singleton class in a PHP project
I am developing a CMS with PHP and using the MVC standard, without using frameworks, I know many will say that I should not do this, but I am doing this as a form of study. However, I never really…
-
2
votes1
answer71
viewsCan Controller have private methods?
I have a question and wanted to hear more people’s opinion. Following the MVC, one Controller can have private methods? This doubt came to me because in my context, I have a Controller JS, and my…
-
2
votes1
answer375
viewsCreate Model from a Migration
I created Migrations from the command migrate:generate of dependence https://github.com/Xethron/migrations-generator Is there any way to generate models from these migrations?…
-
2
votes2
answers301
viewsAjax request data with Angularjs is not getting to the action method
I know this is very basic, but I’m starting now. I’m creating a neighborhood register, using Angularjs, my back-end is in C# with ASP.NET MVC. My method is called by view, but does not receive JSON:…
-
2
votes1
answer593
viewsC# + Entity + Mysql = The underlying Provider failed on Open
I have a problem when I host my system on the Ocaweb. My system is done in C# Asp.net MVC3 with EF and Mysql. This problem occurs only in Ocaweb, I already checked the connectionstring and this all…
-
2
votes1
answer1172
viewsHow to use Automapper 6.2.2 in Asp MVC5?
Hello, how to use Automapper 6.2.2 on Asp MVC5 to map my view models to the domain model. Example: in MVC I use Usuarioviewmodel and in the User domain.
-
2
votes1
answer117
viewsHow to use the MVC development standard?
MVC is a software architecture model, it is divided into three layers and each one with its function, my doubt would be the following, it is the programmer who creates all this structure or it is…
-
2
votes1
answer218
viewsSort by category
Following guys I’ve reviewed this community and got some nice fonts but did not help me, I’m trying to separate my links by categories that are also stored in the database. If anyone has a tutorial…
-
2
votes1
answer35
viewsParameters in the URL using /
I need to have a URL in the following format: nomedosite.com/note/{anything} I need this URL to trigger the controller Note, with the action Index. How should I set my route? I tried to use this:…
-
2
votes1
answer2005
viewsHow to create a mvc project in visual studio code
I’m starting to learn how to develop for web with c# in visual studio code. I am trying to create a web project, the problem is that the command I am using "dotnet new MVC -the Folder Name " already…
-
2
votes1
answer130
viewsProblem with Bundle on the server
Good morning, I was implementing the use of Bundle in my ASP.NET MVC project, in the development environment worked perfectly. But when I go up on the server it does not work. I went to debug in the…
-
2
votes1
answer464
viewsCan View talk directly to Model?
In MVC a View serves to handle the entire user interface, the Model serves to contain the classes that represent the system and its business rules and the Controller performs the communication…
-
2
votes1
answer389
viewsWorking with Javaweb Dates
Hello, I am doing a project that manages all projects of my company, I am using Hibernate, Javaweb, primefaces, TDD and MVC standard. My entity is shaped like this for date variables:…
-
2
votes1
answer60
viewsAuthenticating user by AD returns server user instead of local user
I have a web application that validates the user logged in to the machine, loads their permissions and opens the screens you are allowed, without using login screen. Caught the user with…
-
2
votes1
answer879
viewsHttpcontext.Current.Session is null in thread
Hi, I have a problem with my code. I’m doing a function that lasts about 3/4 hours long, and then I decided to do this function in a thread so that it doesn’t block the overall functioning of the…
-
2
votes1
answer138
viewsMany Relationship for Many ASP.NET Entity Framework
I am having difficulties to make the relationship between my tables using EF. When creating an Order, I need to list the data recorded in other tables, such as Equipment, Tasks and Person, as I try…
-
2
votes0
answers63
viewsMVC with PHP and BOOTSTRAP
I’m starting my studies in MVC. I currently use PHP for this. I have a small course platform paging routine. it uses php. link:…
-
2
votes2
answers9661
viewsCRUD with MVC and DAO in PHP
I’m starting with programming and I’m doing a CRUD with MVC and DAO. I would like to know if the form I am doing is correct, what I could improve and how I call the insertion method of…
-
2
votes2
answers868
viewshow to work with Partialview
I have the People Register, and I have the Address Register, which are in two separate classes, because the goal is that the user can have 2 or more addresses, as the delivery, and the collection.…
-
2
votes1
answer85
viewsChange default pages created by MVC in Visual Studio C#
When I create the controller and use MVC 5 Controller with views, using Entity Framework, the Index, Create, Edit, Delete and Details are created automatically with a default setting, and I have to…
-
2
votes2
answers222
viewsHow to show the Getall data I performed in an HTML table? MVC C# HTML
I’m running a simple site in mvc, by the college. I have to perform a crud. I created a getall method that lists all existing clients in a list. How can I pass the same to the view? I tried the line…
-
2
votes1
answer466
viewsRemove Report Viewer Edge
I have tried several ways to remove this border that appears in the Viewer report, and I could not at all. Below is part of my code with the properties I added to remove the border:…
-
2
votes1
answer194
viewsWhat are the differences between MVC and REST architectures using Spring?
I’m wondering which architecture to use MVC or REST.
-
2
votes0
answers129
viewsMVC programming in PHP
Good afternoon, I’m having a doubt in an exercise that had passed me in the course. I need to get the updated text is a hyperlink that goes back to the hello word, creating a loop between them, ie:…
-
2
votes1
answer201
viewsUsing Sessao on a MVC controller returns error
I am trying to use session in an MVC application, I believe you are right but it is returning the error: Undefined object reference for an object instance when it tries to pass the value in the…
-
2
votes2
answers1105
viewsExcessive line breaking while creating file . txt C#?
I’m trying to generate a file .txt from a code list recovered from the database. However, when the file is generated, line breaks come out in excessive number, as shown below: The code is as below,…
-
2
votes2
answers434
viewsInput Submit does not call Actionresult
I’m having trouble calling Actionresult using input type="submit" and pass the model data. I did a test using ActionLink but Model is not sent. Someone could shed a light? Here is the code:…
-
2
votes1
answer293
viewsHow to map the results of a previous store to an entity using Entity Framework?
Personal talk. I’m doing a project with MVC 4 and EF6. I’d like to call in a proc and her results populate an entity. But my entity is not a bank table, so I did not use Dbset on it. What happens is…
-
2
votes2
answers262
viewsDropdownlistfor selected values do not persist
I am using Asp.net C# with mvc 4 and in my View I have a Dropdownlistfor, with a class I used of bootstrap-multiselect, as in the image: And the code in the view: @Html.DropDownListFor(m =>…
-
2
votes1
answer556
viewsDomdocument::loadHTML() Error
Well I have the following controller where I get a twitter user’s information by username using DOMDocument::loadHTML() public function info($user = false) { if ($user === false) {…
-
2
votes2
answers293
viewsMVC Doubt on Android
Would you like to know the following, in Android development using MVC, for each Activity I have to have a Controller and maybe a DAO? Or can I use the same Controller class that controls two…
-
2
votes2
answers78
viewsWhat is the correct way to send a form to a controller via AJAX?
I have a simple form, which is basically my Viewmodel. I am doing a post via AJAX passing this form, however, on the server side, everything is always null. My AJAX is as follows: var formData =…
-
2
votes2
answers812
viewsbut this Dictionary requires a model item of type 'System.Collections.Generic.Ienumerable`1[Webapplication4.Models.modelExemplo]
I can not carry out enumerate, I switched to another reception of information in the View but I do not know how to correct, I checked other forms in Stackoverflow but I did not understand. Model:…