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
-
1
votes1
answer241
viewsAccent php - Firebird
I’m making a web module for an old system that uses Firebird. I made the connection using PDO, but when I do a query using some special character it does not return results. If you don’t use a…
-
1
votes0
answers325
viewsConversion from String to Bigdecimal is giving error and method not saved
I’m making a system for video rental and on my category screen a field called value to save the value of my category. I was able to convert String to Bigdecimal using the following methods:…
-
1
votes3
answers752
viewsComparison between objects through loop, If and Else?
I’m beginner in java and I’m having doubts in comparing objects by means of loop. I am developing software for a video rental company with Pattern MVC (Model-view-controller) design and I want to…
-
1
votes2
answers586
viewsApplication does not save data and only saves code
I’m developing software for a video rental company with Pattern MVC design (Model-view-controller) and the problem of not saving people is occurring. It only saves people’s code and I don’t even…
-
1
votes0
answers223
viewsHow to use Phpmailer in the MVC file structure
I need to use Phpmailer and my project has the MVC structure, but I don’t know how to organize the files in my models. I have the following file structure: root/ ajax/ controllers/ core/ phpmailer/…
-
1
votes1
answer67
viewsEscape "/" with htaccess and/or php
I have a little MVC made by me. With urls of this type index.php?route=admin/produto/adicionar, but I wanted to withdraw index.php?route=, I already got some lines .htaccess stay that way…
-
1
votes2
answers2638
viewsHow to call a method into an If and Else?
I am developing software for a video rental company with Pattern MVC (Model-view-controller) design and the problem of not calling the save() method and the change() method is occurring inside If…
-
1
votes1
answer220
viewsCarrregar view table with JSON object
I have the following code in my controller: public JsonResult List(string nome){ IList<ClienteDto> clientes = string.IsNullOrEmpty(nome) ? _repositoryCliente.Get() :…
-
1
votes3
answers338
viewsHow to anchor a redirect in APS.NET MVC
How can I send the user to a certain block of the page by passing the id to the url. For example: http://getbootstrap.com/css/#type, how to pass this type in ASP.NET MVC using the return…
-
1
votes2
answers740
viewsCodeigniter media upload error
While trying to upload any media, the following error always appears : O TIPO DE ARQUIVO NÃO É PERMITIDO. But yes, I did jpg, png, gif, I’ve already switched only to pdf and error persists! Follow…
-
1
votes1
answer70
viewsValue and ID at Dropdown Waterfall
Reference that can help you understand the code. Dropdown Cascata This part here I pass the values that will be added in the second Dropdown var classesList =…
-
1
votes0
answers111
viewsConnection between Controller and other classes in the class diagram
I am modeling a project through the UML class diagram, this project is guided by the MVC standard, so that in a given Controller method I receive information, I instate a new object and insert this…
-
1
votes1
answer116
viewsIs it possible to use MVC with VB and ASP?
Is there any framework or way to work with MVC in ASP + VB? Correct me if I’m wrong, but I’m thinking about working that way: View -> .ASP Controller -> .ASP.VB MODELO/DAO -> .VB…
-
1
votes1
answer69
viewsIs there a package services in the MVC standard?
Is there a service package in the MVC standard? It would be an MVCS? For example, I have a Connectionfactory class - which serves to connect to the database. That would be a service. Where do I put…
mvcasked 7 years, 1 month ago Bartô Alheiros 21 -
1
votes0
answers120
viewsWhat is the best way to replace a specific Web Api method for MVC architecture?
How best to replace the following method Sys.WebForms.PageRequestManager.getInstance().add_endRequest() Webform for MVC Structure?…
-
1
votes2
answers86
viewsModel, relationship with Dataannotations
If I have an entity Customers public class Cliente { public int ClienteId { get; set; } public string Email { get; set; } public string Nome { get; set; } } If I create a Boleto entity public class…
-
1
votes1
answer59
viewsConnectionstring according to scenario
Hello, good morning! I have a project where there are two scenarios, which is approval and production. In this same project I created two connectionstrings, setting one for each scenario. In the…
-
1
votes1
answer37
viewsError validating home page after Login/Password
I have an access validation (Login/Password) that if true, should return to the home page, but return me the following error: Invalidoperationexception: Renderbody Invocation in…
-
1
votes3
answers201
viewsIs making queries in a view, in the MVC standard, a bad practice?
I know that most PHP frameworks are used by default MVC. Where thing guy (theoretically) should stay in his particular place. For example, the controllers are responsible for the request and other…
-
1
votes0
answers234
viewsResponsibility of service and Repository
Folks would like to know who uses service design-Pattern and Repository, how it would be a basic architecture structure, or whatever the service may or may not do, and what are the responsibilities…
-
1
votes1
answer71
viewsWhat is the right way to do the template in Django/python?
This has been my first contact with the framework and with mvc/mvt, and I’m in doubt, as a matter of good practices and tals, should I make a template for each of the views or should I just make a…
-
1
votes1
answer101
viewsHow to Batch Generate Excel Files in MVC?
I need to generate separate excel files. I tried to do in a foreach foreach (var item in listExtracts) { DataTable table = Mytable; var grid = new GridView { DataSource = table }; grid.DataBind();…
-
1
votes1
answer153
viewsUndefined variable, PHP MVC application
I have the following error returning in my code Notice: Undefined variable: errors in D: wamp www mvc application controllers login.php on line 33 This is my Controller: class Login extends…
-
1
votes0
answers34
viewsChange Cultureinfo to MVC5 / C# and Multi-tenancy
Good afternoon folks! I am working with MVC5 and need a help in the following situation.. I have a view that contains a language selector, and needs to dynamically change the content after selecting…
-
1
votes1
answer165
viewsHow to Implement Plugins in an MVC Framework
I’m creating my own Framework MVC, mainly for studies, and would like to implement plugins but I have no idea how to do it. I would like to know some points, such as: Control of plugins installed?…
-
1
votes2
answers918
viewsMVC - pass a php variable to the angular.js controller
I’m making a list and I want to pass the values of a model to the algular script that is in the view. Model: function getAllDisplayable_all() { $this->db->select('id_menu, nome, descricao,…
-
1
votes1
answer610
viewsFill date Automatically in ASP.NET MVC 5
Hello, all right? I need some help from you, I already searched here on the forum but I was not successful with the results. I have a small application where I control Digital Certificates, my…
-
1
votes1
answer52
viewsDoubt regarding the MVC
I’m doing my first project using MVC in PHP, and I came across this question: In relation to ajax and requisições assíncronas, when I request a page, that page that processes the ajax request would…
-
1
votes0
answers281
views -
1
votes1
answer132
viewsStored asynchronous Procedure
When trying to run Process asynchronously public async Task<ActionResult> Index() { Stopwatch watch = new Stopwatch(); watch.Start(); ContentManagement service = new ContentManagement(); var…
-
1
votes2
answers2457
viewsHow to use the controller in a java application
Staff I am starting in programming and would like to take a question that does not want to shut up, how to use the controller correctly whether it is being used in a design Pattern model or even in…
-
1
votes0
answers38
viewsMVC Routes and Controllers architecture with multiple versions using Spark
I am implementing a Rest API in Java using the framework Spark. I need to split the routes into two versions or more: v1 and v2. I know the Spark provides the path(), I believe it is not difficult.…
-
1
votes1
answer84
viewsSave visitors e-mail (Newsletter) with codeigniter
Good morning guys, I’m a beginner in PHP and codeigniter. I need a light, I even found what I need but not in codeigniter (Because my site is in mvc). This was found and worked on my localhost…
-
1
votes1
answer714
viewsExample of Sendgrid V3 with attachment
I am in need of an example code for sending email with attachment using sendgrid Web API v3. using (var client = new HttpClient()) { client.BaseAddress = new Uri("https://api.sendgrid.com/");…
-
1
votes1
answer48
viewsMapping with Entity Framework
Good afternoon, when analyzing a code I see in the mapping the following line: this.HasKey(t => t.IdEstudante); I understand what you do in practice but not theoretically, refers to the object…
-
1
votes1
answer244
viewsForeach without repeating the name
I have a Foreach in View, and it contains Description, Qtd and dta,how do I make a foreach without repeating the description? Ex: I have a product X whose were removed 10 units day 01/10/2016, 3…
-
1
votes1
answer973
viewsList of View objects for controller
I have two Customer and Address entity where the customer has multiple addresses. At the time of completing the form, the user can add two addresses in the same form and at the time of Submit, I…
-
1
votes2
answers49
viewsPrevent Seed from duplicating data
I’m using this code in Seed to generate values in my table, so I don’t have to type in the database, when I change something of my code and need to give an update in the database, so it’s not…
-
1
votes0
answers334
viewsAfter all, where should the rules of business be maintained?
I am going through this doubt at the moment, I am researching about design patterns. Using the Framework, which has by default the MVC. Where should we keep business rules? I read that some people…
-
1
votes1
answer237
viewsEmpty Multipart/form-data (ASPNET CORE)
I am trying to send files to my api via 'POSTMAN', but when the request arrives at the API endpoint 'Iformfile' always comes empty. POSTMAN Controller [AllowAnonymous] //utilizada apenas para teste…
-
1
votes1
answer127
viewsHow to get the url from Chrome Devtools
I have the following code: function AbreModalEnvioRelatorioDiligencia(id, idProcesso) { debugger $("#myModal").load("..\..\_ComunicaDiligencia?idProcesso=" + idProcesso + "&idInformacao=" + id,…
-
1
votes2
answers55
viewsHow to get a value from an array property?
A VÁRIAVEL ARMAZENZA: $parcelas = DB::select("SELECT parcela_number FROM parcelas WHERE 3000 BETWEEN valor_min AND valor_max"); VAR_DUMP: array(1) { [0]=> object(stdClass)#144 (1) {…
-
1
votes3
answers878
viewsHow to hide URL ID?
17/11/2016 I have an application that is mounting the following URL www.meusite.com.br/controller/action/id However, I need the ID not displayed in the URL, but let it live on back-end, because it’s…
-
1
votes2
answers421
viewsHow to send form_tag variables to javascript function? Rails
I am new to web programming and Rails and have the following question: I have a view that displays a food list and a field to fill with the amount of grams I want from each food. I’d like to exhibit…
-
1
votes1
answer426
viewsJquery Maskmoney Asp.net Mvc
I use the Jquery MaskMoney in my inputs to treat the decimais, so far so good, but I noticed that when I type values above 1,000.00 where the MaskMoney plays me the point(.) in value, When I save…
-
1
votes1
answer48
viewsCardinality of MVC on desktop
What should be the cardinality of the desktop MVC? Models: typically one, there may be more. Views: how many are observing the model, or a tree, representing approximately the GUI? Vision should…
-
1
votes1
answer275
viewsViews accessing other controllers
Let’s say I have the class Veiculo and the class Fabricante. Each vehicle has a manufacturer as an attribute, among other attributes. I have the views to maintain (register, edit and delete) and…
-
1
votes0
answers32
viewsMysql incorrect decimal value in view
I don’t know why the number 9937.77 stored in Mysql as Decimal(12.2) displays 9 million in views 1.00 displays 100 (1.00 is correct) 5.77 displays 577 (5.77 is correct) I tried to DisplayFor(m =>…
-
1
votes1
answer97
viewsMVC 5 Ajax.Actionlink returns result, but does not render in DOM
Gentlemen, I’m having trouble displaying a list of results in my view. The idea is, by clicking on a dropdown value, I make an asynchronous query to popular the next dropdown. I refer to the…
-
1
votes1
answer233
viewsReportviewer does not load in Internet Explorer 11
I’m trying to open a report with the ReportViewer in the Internet Explorer 11 And the same doesn’t open at all. This occurs with the application published on an application server, but when I run…