Questions tagged as 'mvc'

1
answer

Controllers need to be classes?

When developing a system using MVC from scratch, does each controller need to be a class or can I simply use a file containing some functions that will be called according to the action sent by View? Example, I have a controler for the "profi...
asked by 20.03.2015 / 18:06
1
answer

Model / View Programing - WPF and MySQL

I had already done some C ++ programs using the QT framework and its Model / View Programming ( link ). The concept was simple: created a template accessing MySQL Creating the view that accesses the template ... Now that I'm using C...
asked by 21.10.2016 / 00:03
1
answer

Is there any way I can save a published file on a user's PC from a published site?

I am creating a zipped file and need to save it to my user, but when I save the location wherever the file is saved it saves on the server where the site is hosted. Path string zip = @"C:\file.zip"; Moving on to be saved ... using (var...
asked by 09.05.2016 / 15:43
2
answers

Visual Studio 2015 Latch and not back when accessing page cshtml and inserted ""

People are very strange. In any project when I insert into a cshtml file a "<" the visual studio 2015 crashes and restarts, this happens in any WEB project, I've reinstalled it 3 times and it always happens. I just need to format the compu...
asked by 08.12.2015 / 01:38
1
answer

What relationship between MVC and Project Standards?

We know that the Model View Controller (MVC) is not a Design Pattern, but architecture standard. It is also not a layered pattern, as this tells you how to group components while MVC tells you how components interact. MVC uses some standards....
asked by 03.06.2015 / 15:50
2
answers

How to pass controller variable to view [closed]

Hello, I did an mvc application but I'm having trouble passing a controller variable to the view. My codes: class Home extends Controller { public function index() { $user = $this->loadModel('usersModel'); $row = $user-&...
asked by 20.12.2015 / 00:43
1
answer

EF6 EntityValidationErrors error in filled property

I am having a similar problem in two ASP.NET applications with Entity Framework. When I try to update an entity that already has all the required mandatory attributes I get a EntityValidationErrors exception, however this property that...
asked by 14.05.2015 / 19:13
2
answers

What is 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 the controller method, but let's assume that for each page (method) I w...
asked by 06.03.2017 / 22:25
1
answer

JavaFX: pros and cons of MVC, MVP, MVVM, etc.

What standard model-vision (MV) use with JavaFX thinking about scalability and good manutibility? On Google you find people recommending MVC, MVP , MVVM ... maybe there are others. Some say JavaFX is meant to be used with MVC . Others...
asked by 01.06.2018 / 19:06
1
answer

Problem moving from Controller to Model

I'm making a code, where it involves MVC. To move from View to Controller I'm not having problems, but when I go from Controller to Model I can not, being that the variable is imported, but without any value. View: package bancomvc;...
asked by 02.07.2015 / 04:39