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
- 
		5 votes1 answer98 viewsA user model should have all the actions that involve it?Whenever I research I see that in MVC we should separate well the models so that it becomes more organized and easy for a next developer to understand the system. I have basic actions like login,… 
- 
		5 votes2 answers912 viewsGood practices for PHP MVCI am deepening on the use of MVC using PHP, and after seeing some lessons and articles on the Internet I had some doubts about its use, since I found classes that present the same case differently.… 
- 
		5 votes1 answer127 viewsCode Review: Simple MVCHello world! I tried to make a very simple MVC in Javafx. My template is a class Pessoa who owns nome and idade (the field idade in case it is not used). Two text Fields represent two views. For… 
- 
		5 votes1 answer1377 viewsHow to implement a Route System in MVC?I am creating an MVC Framework (more for studies), and I am trying to implement a route system, but I’m not sure how/where to run the routes. So I’d like to know if there’s any flow of execution of… 
- 
		5 votes2 answers2110 viewsLaravel - Route with variableGood morning Sirs. I have a question about the route in the Laravel, I carried through researches trying to find the result but I did not find what I wanted. I need that from the id that is… 
- 
		5 votes1 answer516 viewsWhat is the difference between an Entity and a Model (MVC and the like)?In object orientation both are classes usually used to represent something that will be persisted (not that it is mandatory to persist), but what is the difference between them? Or are they… 
- 
		5 votes1 answer951 viewsGif to load while website loads!I am developing a website (MVC), where there is a user option to select an Excel file, and all table data is sent to the database and only then appears a warning of success or failure when recording… 
- 
		5 votes2 answers1042 viewsHow to create a Datatable that has a dynamic column structure?Hello, I need to create a Datatable in my MVC project that will not have predefined columns. The amount of columns should be defined from the amount of data existing in a BD field. I have a field in… 
- 
		4 votes5 answers1944 viewsPHP MVC - Adding CSS, Images etcHello, in my application I am having problems when I will add a css file, image or any other file that is frontend, because when I will include I need to set the whole directory of the same, for… 
- 
		4 votes1 answer1237 viewsProblem passing parameter via GET MVCI can’t get the figures by GET within a controller or action, example: Doesn’t work: example.com/controller/?q=nome example.com/controller/action/?q=nome Works: example.com/?q=nome Note: POST type… 
- 
		4 votes1 answer938 viewsRDL Report of Report Builder 3.0 with MVC 4I have a problem here, I made a system in C# using Razor MVC 4 with SQL Server 2014 database, so far so good... but now I need to generate reports, I made a report there in Report Builder and added… c# mvc visual-studio-2013 asp.net-mvc-4 report-builderasked 11 years, 2 months ago Jeferson Santos 41
- 
		4 votes1 answer549 viewsWhat is the relationship between MVC and Project Standards?We know that the MVC Standard (Model View Controller) is not a Design Pattern, but an architecture standard. It’s also not a layered pattern, because it tells you how to group components while MVC… 
- 
		4 votes2 answers1833 viewsDynamically execute model class method from an ajax request to the controllerI am creating a feature in my system for dynamic component reloading, so that queries are executed that are allocated in model layer classes, through AJAX requests. However, since I use the MVC… 
- 
		4 votes2 answers257 viewsParameter check on MVCIn the MVC Standard, the Model is responsible for the business layer, in it will be the business rules and validations. I have a question about the following. A method in the controller that takes… 
- 
		4 votes1 answer117 viewsDoes having the layout ready facilitate development with MVC?I’m learning to program and study dozens of things at the same time because programming is my job. What I’d like to know is about MVC. I imagined that in relation to the MVC, the V of view should… 
- 
		4 votes1 answer282 viewsMain location in a project with MVC patternWithin a project guided by the MVC standard where the main() application should be located? Thinking a little I imagined it was the model, because it contains the most "complex" parts of code, but… 
- 
		4 votes1 answer643 viewsProblem with Decimal (4,2)I have an MVC project, I am using Entity Framkework and in my database there is a table with a column of type decimal (4,2). The problem is: I try to insert any value, for example: 5.00 // 5,00 //… 
- 
		4 votes1 answer220 viewsWhere to implement Facade in the MVC?I’m developing a C# project using MVC, but the teacher wants all students' projects to have Facade, the doubt is as follows ! Where I implement Facade, Model, View or Controller ? 
- 
		4 votes2 answers472 viewsMVC and DAO - Data RulesIn a CRUD where at the time of registration it is necessary to verify if a certain field already exists in the bank, in order not to allow duplicate registration, this rule of verification must be… 
- 
		4 votes1 answer575 viewsLaravel Auth::Atempt() always returns falseI tried to authenticate, but it always comes back false in the method Auth::attempt() of Laravel: $prontuario = Input::get('prontuario'); $senha = Input::get('senhas'); if… 
- 
		4 votes2 answers566 viewshtaccess hide MVC model parametersI have the following URL: http://192.168.1.67/plays/mvc/index.php?route=profile&user=mikas.28 On which route = PAGE and user = USERNAME.USERID I have the following htaccess Options -Multiviews… 
- 
		4 votes1 answer1360 viewsMVC representation in UML class diagramI’m building the class diagram of my project and I got a question at a certain point. In the project I create an instance of my Controller class in main and pass the reference (I know that in Java… 
- 
		4 votes1 answer2872 viewsWhat does " :: " mean in PHP?In PHP, what do these four dots mean "::" ? I see a lot in things like: stackoverflow::class 
- 
		4 votes1 answer668 viewsCalculation of hotel nights in MVC applicationI recently started programming in MVC and I am full of doubts. I’m developing a hotel reservation system and after spending 3 days trying to calculate the total cost of a reservation unsuccessfully,… 
- 
		4 votes2 answers2633 viewsWhat is the difference between the MVC architecture and Django’s MTV?I wonder if there is any difference in practice between these two architectures. 
- 
		4 votes1 answer5406 viewsWhat’s the difference between cshtml and htmlIs there any difference between CSHTML and HTML, mainly in security, performance and application? There is some loss when using HTML on a project ASP MVC, and what are the benefits of using the… 
- 
		4 votes2 answers284 viewsHow to use jQuery in MVC Architecture?We know that MVC is a software architecture standard (Pattern design) which makes a separation of: Vision (User interface), Template (Business rules), Controller that performs communication between… 
- 
		4 votes1 answer2526 viewsRecover view value for controllerGoal: Retrieve view value for controller [Httppost] I created a Generic class with gets and sets public int ListarDadosCarteira_Resultado { get; set; } public string ListarDadosCarteira_Descricao {… 
- 
		4 votes0 answers74 viewsWhat would be the best practice, within the MVC standard, to process the data?An example (I usually use Cakephp, but the question would be for any framework and language): to save date type fields in the finger bank I have to transform a format field dd/mm/yyyy in yyyy-mm-dd.… mvcasked 9 years, 2 months ago Keoma Borges 201
- 
		4 votes1 answer366 viewsopen a view in a new tabI have a view with a chart, but I don’t want it to open inside my template and yes in a new aba. $this->loadGrafico('graficoEscola', $grafico);… 
- 
		4 votes1 answer497 viewsStore content / variables in Model - PHP MVCHello, I’m starting to study the MVC standard for PHP. I’ve read several questions here at Stackoverflow, I’ve studied the Laravel documentation and read several articles. I chose the concept… 
- 
		4 votes2 answers10962 viewsLaravel 5.3 Trying to get Property of non-objectgood morning! I followed what is said in this tutorial to fill values in a view: https://www.tutorialspoint.com/laravel/retrieve_records.htm And I did the same scheme on my controller: public… 
- 
		4 votes1 answer110 viewsHow to change chart when changing dateFirst I apologize for my lack of knowledge of some concepts, I am new in the area. I recently started in a company where I have the following problem: I have a Datepicker and when selecting a date,… 
- 
		4 votes1 answer7792 viewsPDF Generator with Laravel Framework?I need to do the snappy generate reports from BD. But for that I needed examples of using the snappy, in the documentation of github there’s an example, but that example didn’t help me. I needed an… 
- 
		4 votes1 answer150 viewsAre models in the MVC structure for database operations only?I learned that "Whenever you think about data manipulation, think about model. It is responsible for reading and writing data, and also for its validations." Later another person told me that models… 
- 
		4 votes1 answer438 viewsPage shows only the files in IIS 7 MVC Application 5I have a Mvc 5 application, for development I used IIS Express, everything works normally on it, but I am a problem to climb IIS 7. Still on my local machine, later I will take to Windows 2008. The… 
- 
		4 votes1 answer125 viewsIs it correct to use PHP code in the view layer along with HTML?I’m starting now in the area and I have a college job to do and it is necessary to use the MVC standard, I have even separated things well, but I came across the following code in a file of my layer… 
- 
		4 votes1 answer134 viewsView 2 dataTextField in a SelectlistHello! I have a little problem to make a selectlist display 2 values in textfield. I have the following Selectlist which is stored in a viewbag: ViewBag.Account = new SelectList(new… 
- 
		4 votes2 answers613 viewsNodejs - Mysql Error: Too Many ConnectionsI recently made a refactor of my code to adopt the MVC standard, because it was very disorganized! However, an error called "Too Many Connections" started to appear. This error causes my Node-mysql… 
- 
		3 votes1 answer518 viewsProblem in Google Maps Javascript API V3 with MVC WebappI want to make a simple Map appear when the user clicks on (Menu>Find), the problem is that the controller receives the data and sends me and does not return the Map. I am using in my design, MVC… 
- 
		3 votes3 answers6202 viewsPass View Variable to ControllerI’m doing a forum with PHP and Codeigniter, and each category must display its respective sub-categories, however, all categories, show all sub-categories, how can I make each sub-category appear… 
- 
		3 votes1 answer652 viewsHow to implement the MVC standard in PHPI’m a novice programmer and I’m having a little trouble putting together my MVC structure. When I say structure I mean how to develop a model.php a view.php and a controller.php, finally what code… 
- 
		3 votes1 answer49 viewsHow to create a Helper for creating DatepickerI would like to create an MVC Helper for the creation of a Datepicker. Example: @Html.DatePicker(); 
- 
		3 votes1 answer192 viewsSlow response PHP APII’m doing a project with band profiles. I’m trying to use the last.fm API.. For test basis I downloaded the PHP API: https://github.com/fxb/php-last.fm-api The classes I left in… 
- 
		3 votes1 answer335 viewsDo controllers necessarily need to be classes?When we are developing a system using MVC from scratch, each controller needs to be a class or I can simply use a file containing some functions that will be called as the action sent by View?… 
- 
		3 votes1 answer43 viewsIterator in MVC patternI am doing a project and it was asked to build an iterator class. This whole project is being built based on the MVC standard. So what would this Iterator class be and how would I use it? By q I’ve… 
- 
		3 votes2 answers784 viewsVisual Studio 2015 Hangs and not back when accessing cshtml page and inserted "<"Guys this very strange. In any project when I insert in a cshtml file a "<" visual studio 2015 crashes and restarts, this occurs in any WEB project, already reinstalled it 3 times and always… 
- 
		3 votes2 answers1440 viewsHow to pass controller variable to viewHi, I made a mvc application but I’m having trouble passing a controller variable to the view. My codes: class Home extends Controller { public function index() { $user =… 
- 
		3 votes1 answer425 viewsEF6 Entityvalidationerrors error in filled propertyI have a similar problem in two ASP.NET applications with Entity Framework. When I try to update an entity that already has all the required attributes filled I get an exception from… c# mvc entity-framework-6 validation model-validationasked 10 years, 5 months ago Eduardo Barbosa Oliveira da Si 45
- 
		3 votes3 answers1905 viewsWhat are the layers of a web application?In a simple desktop application on C# Windows Forms for example and layered model can defined as follows : Presentation Layer Windows Forms, GUI (User interface windows). Layer of Business Rule… web-application mvc software-architecture software-engineeringasked 9 years, 6 months ago stringnome 1,752