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
-
0
votes1
answer39
viewssearching text in database
hello, I am developing a Faq system and I use MVC architecture, I created a search structure within my model, and I passed the parameters within the control but when listing inside the view does not…
-
0
votes1
answer122
viewsDatetime field is null when switching to controller
I have in my application a search form using Ajaxbeginform. In the same I own a data field (Datetime), and in which I am using the bootstrap datepicker. My form looks like this: @using…
-
0
votes0
answers66
viewsRequired Parameter is not present in Spring MVC design with spring boot using Thymeleaf
I am generating a form in the html code of my project and using Thymeleaf to create it. Some form fields are input type because the user needs to enter it, others are select type because there is…
-
0
votes1
answer33
viewsSpring session attribute is not shown in JSP via JSTL
I have a Credential class that I use to store session user information (it’s annotated with @Sessionscope and @Component). When I print some attribute of this class, it usually appears, but if I try…
-
0
votes1
answer155
viewsSOLID Principles within Laravel Controller
Within SOLID principles, how to implement the first 2 principles ? SRP and Open-Closed Principle. My structure is simple, it has models within the app generated by Artisan, and simple controllers.…
-
0
votes0
answers78
views<input type="file" receiving only null value
I’m having difficulty my project, I have a field in my form where I pass a file to it and send to my controller, problem is that the value always arrives null, I tried several ways but, I’m not…
-
0
votes1
answer48
viewsSend Email Asp.net Mvc
good afternoon guys, I need a help, I don’t know if I’m doing wrong more when I try to send an email, through code in the controller nothing happens, can you give me a help of what might be waking…
-
0
votes1
answer297
viewsStartup at . net core 2.2 and . net core 3.1
I am taking the MVC core course from developer.io, but in the course . net core 2.2 is used and I am using version 3.1. In creating a MVC project from scratch the route configuration code in .…
-
0
votes0
answers96
viewsspl_autoload_register does not work
I am developing a system in mvc. Developing locally, everything worked correctly... But when I put it online to be able to test, it just didn’t load, it was 500. So I started trying to find the…
-
0
votes1
answer67
viewsMVC the method I used to call a function from another model is correct?
I am studying MVC and came across the following situation: I have a View that needs to receive data from two different Models, so in the controller of this View I have the function below: public…
-
0
votes2
answers249
viewsC# API Routes (Beginner)
I created a new project like: ASP.NET Web Application - WEB API I created a new controller, however, I’m not being able to differentiate the ACTIONS. If I have more than one method of type GET, at…
-
0
votes1
answer53
viewsDelete key composed of a table with angular and Asp.net core
You guys all clear? next I’m having problems with composite key in my project and I wanted your help because I’m still not quite sure about it, I’m doing the front in Angular and the backend with…
-
0
votes1
answer19
viewsCompare the number of rows of a list in a Viewbag
I need to know how many lines(in view) I send from my controller in a type list<> for a viewbag in the view. With this enable or not the option to create new images. Controller:…
-
0
votes1
answer16
viewsForeach in the FPDI repeats the data in the same place
I dynamically send to this file via controller the data in an array called $vaccines, I am using Import Autoload for this reason. It turns out that the information is being printed in the same…
-
0
votes1
answer25
viewssubtraction of values between columns other than the same table
is the following, I am trying to get the result of a subtraction through a query between different columns of the same table. I have the following table. As you can see in the table, I have the…
-
0
votes0
answers29
viewsValidation for Dropdownlist in ASP.NET MVC
I’m doing a project, I was doing a Dropdownlist that takes the database data and shows the user. To some extent everything went well, but it lacks a part of treatment, or a validation, because every…
-
0
votes1
answer127
viewsImplementing an API for a website’s business rules: is it an exaggeration? Or is it good practice?
In some places that I worked with C# MVC I saw two ways to program the business model of a web system, being them: coding inside the Controller of the web application; creating a web API Rest and…
-
0
votes1
answer42
viewssqldatetime overflow c# When trying to use type = Date in Razor Using . NET MVC
When trying to save a change from a client, the SQL Server database is returning the following message: Sqldatetime overflow. Must be between 1/1/1753 12:00:00 AM and 12/31/9999 11:59:59 PM. View:…
-
0
votes1
answer39
viewsERROR: cannot Convert from 'int' to 'CRUD.Models.Times'
hello! I am doing a crud project on Asp net mvc and my code presents the following error: Severity Code Description Project File Line Suppression State Error CS1503 Argument 1: cannot Convert from…
-
0
votes1
answer39
viewsError converting an Enum
Good evening guys, I’m new in C# and would like if possible a help, I created an Enum with client codes and I’m trying to pass its value through a validation and I’m getting string to int conversion…
-
0
votes0
answers24
viewsError in an MVC application using foreign key with Mysql
I cannot register an owner who depends on a foreign key Cidadeid Mysqlexception: Cannot add or update a Child Row: a Foreign key Constraint fails (veterinario.proprietario, CONSTRAINT…
-
0
votes1
answer20
viewsI’m trying to make a select here more ta giving this problem Trying to get Property 'num_rows' of non-object on line 49
// essa função vai retornar um select de um determinado modelo public static function getResultSetFromSelect($where = [], $colunas = '*') { $sql = "SELECT ${colunas} FROM " …
-
0
votes0
answers45
viewsCreate dynamic html table by setting the class or id to rescue later with jquery
I’m creating a dynamic table as the user adds content. Then I need to take this data and create the object and send it to the controller, to create the table I used the following way: function…
-
0
votes0
answers31
viewshow to traverse each row of an object array and display on the screen (PHP)
I am having a problem displaying a query(Select) of some items on the screen. It is only displaying the first line. <?php require_once 'app/Lib/Database/Connection.php'; require_once…
-
0
votes0
answers52
viewsError adding mvc controller using the Entity framework
I’m trying to create a MVC application using Entity Framework Core, and Asp.Net Core MVC 5, using Mysql through Pomelo.EntityFrameworkCore.Mysql, the domain class is defined as: public class Aluno {…
-
0
votes1
answer39
viewsError accessing state change that has a country
I have a state register, which has a country. It registers normal, only that error occurs when accessing the state change. I don’t know if it’s right, but from what I understand, something from the…
-
0
votes0
answers19
viewsKeyerror: None Flask
Hello, I’d like your help, because I’m trying to understand why you don’t perform!? config.py import os import random, string class Config(object): CSRF_ENABLED = True SECRET =…
-
0
votes0
answers16
viewsWhy can’t I handle errors when mapping tables?
How can I improve error handling when mapping tables/views? I already solved the error, but I need to e-mail a message with details of the error, as it is not Code First, I end up having these…
-
0
votes0
answers35
viewsHow to set up a WEB application developed in C# ASP.NET (.NET Framework) for a server configured in Medium Trust?
Guys, I’m having the biggest headache to host a website, developed in C# ASP.NET (.NET Framework), MVC, on the server of LOCAWEB. Their server is set to Medium Trust and their confidence level is…
-
-1
votes1
answer575
viewsSend variable to the layout in laravel4 with Blade
I have a problem here I need to send a variable to my layout, I tried so: On the controller $this->layout->page = 'Atendentes'; and in the layout that @yield('page') the problem is that I need…
-
-1
votes1
answer147
viewsHow to use or add aspx pages in an Asp.Net MVC project
You can use or add to my project that is on Asp.net MVC a page that is ready in webforms (aspx and Cs) ? If yes how do I add the page ?
-
-1
votes1
answer934
viewsASP.NET MVC vs Angularjs with WEBAPI
In a web project (type a "small" ERP, rs) where some companies would manage their branches and there could be several connected users, which would be better in terms of performance and performance…
-
-1
votes1
answer129
viewsMVC/ OO events system
I’m writing my first PHP application. What I have been studying, I have chosen to learn Object Orientation and MVC. I’m building this application by following a book I have, and it’s returning the…
-
-1
votes1
answer219
viewsRecord Video and Upload C# MVC
I have to record a 5s video on the webcam, after the recording upload this video to a folder. I have already searched several plugins in JS, I used this "…
-
-1
votes1
answer153
viewsDoubt Interface Asp.net mvc
Good night, I have a doubt, I chose to work with Generica interface and my doubt is: Every entity needs to have an interface inheriting from the Generica interface ? Ex: public interface…
-
-1
votes1
answer109
viewsSave entities related to cakephp-3
I don’t understand why related entities aren’t working with cakephp, for example: I have a company entity, and this company has a user. In my view, the company values correctly put…
-
-1
votes1
answer33
viewsGet email from current User
I developed an application, however I want to get the current user email (because aesthetic and requirements issues). I can only get the user name through the following code:…
-
-1
votes1
answer36
viewsInstance error
I’m getting the following error: Referência de objeto não definida para uma instância de um objeto. The line generating the error is as follows: var _TceView =…
-
-1
votes1
answer143
viewsSpecify custom View paths in ASP NET Core 2.0 MVC 5?
I’m having a big problem specifying the path I want the controller to search for the view relating to it. I’m using more than one subfolder within an area: I want the controller to be able to…
-
-1
votes1
answer317
viewsHow do I integrate React into a MVC (PHP) structure?
I am learning PHP and I came up with a question: With React, we have the CLI, which is a structure already ready for you, with all the necessary files. In MVC we built a structure separating the…
-
-1
votes1
answer81
viewsInsert PHP into CSS in MVC structure
I’m trying to add CSS to a PHP file, so I can then change the properties of this CSS in an administrative panel, but I’m not finding the solution for that, does anyone have any idea how I can do it?…
-
-1
votes1
answer49
viewsWhat is the best way to search for many variables in the database?
I am developing a C# MVC application and am having problems presenting the records. I have a list of over 250 variables and the user chooses which one he wants to see on the chart. Inside the…
-
-1
votes2
answers154
viewsHow to create an "Area" in MVC in . net core 3.1?
The path to creating an Area no longer appears in . net core 3.1 Path: Project > Right Click > Add > Area
-
-1
votes1
answer19
viewsI can’t access the filter variable in the view or controller
I’m trying to create an update filter using MVC in php, but I can’t access the upload variable via get. If anyone can shed some light.…
-
-1
votes1
answer54
viewsHTML5 datepicker onchange event
Can anyone tell me how to use datepicker onchange event to do a check on selected date? in my cshtml is like this: @Html.EditorFor(model => model.Dat_emissao, "{0:dd/MM/yyyy}", new {…
-
-1
votes1
answer37
viewsFlask import problem (Unable to import 'controllers' pylint(import-error)
Good evening, I’m starting to program now and I’m trying to make a simple system using the Flask framework, but during the organization of the files I came across the problem of the title, I’m not…
-
-1
votes1
answer405
views -
-1
votes1
answer705
viewsReturn SQL array in a php variable, for later HTML assembly
I need to do a database search on a date variable and return only the Years. For this I did the following : In control: public static function getDataAnos() { $bd = new Banco(BANCO_HOST,…
-
-1
votes1
answer218
viewsI made an application/game in java and used MVC. However, I have already concluded and I did not put anything in the Model, is that correct?
I made an application/game in java and used MVC. But I have already completed the application and I did not put anything in the Model. I did everything in the Controller and View. My application…
-
-1
votes1
answer395
viewsRoutes with flask
I am trying to separate the functions of its routes, creating only a file for the routes and a file for each function, but when I try to call this file from the function in routes it does not find…