Questions tagged as 'mvc'

1
answer

Two-way asynchronous communication in layers

I have system in Asp.Net MVC (.Net 4.5) divided into layers: Thatsaid,let'sgetdowntotheproblem...I'mtryingtocreateascreentosendemailsasynchronously(3emailsatthesametime,forexample),buttherewillbeabuttontocancelthesending,whichforcesmetoinfor...
asked by 30.06.2017 / 15:25
2
answers

Checking parameters in MVC

In the MVC Standard, the Model is responsible for the business layer, in which will be the business rules and validations. I have a question about the following. A method in the controller that receives any parameter (it can be a primitive type...
asked by 22.02.2015 / 21:51
1
answer

Location of main in a project with MVC pattern

Within a MVC default project where main() of the application should be localized? Thinking a little I figured it was in the model, because it contains the most "complex" parts of code, but I'm not sure.     
asked by 25.11.2015 / 12:22
1
answer

PDF Generator with Laravel Framework?

I need to make snappy generate reports from BD data. But for this I needed examples of using snappy , in the documentation of github you even have an example, but that example did not help me. I needed an example of how to...
asked by 06.03.2017 / 19:04
4
answers

PHP MVC - Inclusion of CSS, Images etc

Hello, in my application I'm having problems when I add a css file, image or any other file that is frontend, because when I include it, I need to set the whole directory of it, for example. The views directory has the following structure  ...
asked by 23.03.2014 / 15:21
1
answer

Having the layout ready facilitates development with MVC?

I'm learning how to program and study dozens of things at once because programming is my job. What I would like to know is about MVC. I figured that in relation to MVC, the view V should have its HTML ready right at the start of the projec...
asked by 11.10.2015 / 17:25
2
answers

Laravel - Route with variable

Good morning Sirs. I have a question about the route in Laravel, I have done searches trying to find the result but I did not find what I wanted. I need that from the id that is redirected (for example: / discipline / 3) it sends the number "...
asked by 17.11.2016 / 06:09
2
answers

Laravel 5.3 Trying to get property of non-object

Good morning! I followed what is said in this tutorial to fill values in a view: link And I did the same scheme on my controller: public function select_cursos_disciplinas() { $cursos = DB::table('select * from cursos'); $discipli...
asked by 03.11.2016 / 12:58
1
answer

Retrieve view value for controller

Goal: 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 { get; set; } public int ListarDadosCart...
asked by 27.04.2016 / 21:47
1
answer

Code review: Simple MVC

Hello world! I tried to make a very simple MVC in JavaFX. My model is a Pessoa class that has nome and idade (the idade field in case it does not get used). Two text fields represent two views. For simplicity bot...
asked by 05.06.2018 / 16:21