Questions tagged as 'model-view-controller'

1
answer

laravel 5.5, multiple drivers in one or more views?

Greetings wherever you are on that side of the receiver, I have weeks learning about this giant that is laravel (5.5), I have a system to develop during my degree work, but I have a big failure, I can not find or not how to pass the methods of t...
asked by 06.10.2018 / 00:43
1
answer

Scaffolding with Asp.net 5

I have been working recently with asp.net 5, in addition to the new features it has and the improvements it makes I can not find the way to do scaffolding as it was done in asp.net 4. Is there a functional and stable add-on for an asp.net 5 p...
asked by 02.12.2015 / 16:57
1
answer

MVC Create Controller - DbContext has been disposed

I'm using MVC / Entity Framework, the error that is coming up is this: The operation can not be completed because the DbContext has been available Yes the record is created, but I get that error every time I save the record. Before, (yest...
asked by 23.11.2017 / 14:47
2
answers

Laravel views does not work Session: :( 'message'), nor the Auth :: user () -

I have a problem with Laravel 5.2. At the moment of authenticating the user and redirecting to the home or login depending, the messages that I create by Session::flash() do not appear and on the home page when I try to show the name o...
asked by 06.03.2016 / 19:08
1
answer

Show in details a list of ALL the materials that belong to two tables that have a one to many relationship with MVC 5 and EntityFramework

Greetings to all I am new to MVC and I have a problem to show the following model, the table OutMaterial stores the permissions on some kind of material that goes out, the table OutlineMaterial stores specifically the materials that are...
asked by 03.07.2018 / 19:49
1
answer

List data in ASP.NET view c #

I have the following method where I bring the data from the database //Traer categoria public List<categoria> listar() { var cate = new List<categoria>(); using (var ctx = new ACME())...
asked by 17.04.2018 / 05:43
1
answer

An error occurred during the compilation of a resource required to service this request / Models

Hi, I made some changes to this table in my database and now I'm having problems with my data model. Trying to get my data I got the following error. I understand that the error is in data model, now I must change it to be similar to my new t...
asked by 08.12.2017 / 19:34
1
answer

How to paginate in PHP with MVC?

I have a controller and a view that work perfectly, I found it on the internet but now I would like to paginate the records and I can not do it with MVC: Driver class Home { public function saludo($nombre) { View::set("name", $n...
asked by 09.08.2016 / 04:05
1
answer

Avoid resubmitting form in cake php

I explain the problem, the user fills out the form and if you press f5 or update the page, the data you just entered is reinserted exactly the same, one of the options would be to validate that the id is not repeated, but in this case It is not...
asked by 11.04.2018 / 22:30
0
answers

Laravel without using the Models?

I wanted to make the following query regarding the working mode of Laravel 5.5. Is it possible to work or develop a project with Laravel without using the Models, that is, only using the controllers to obtain and send the data to the views (u...
asked by 21.01.2018 / 16:25