Questions tagged as 'mvc'

1
answer

You are bringing the entire column and not just a specific id

I'm trying to get the last km registered in the bank of a specific vehicle, but it brings me all km and not a specific vehicle. My Controller: var Rota = ckm.ConsultaProduto(viewModel.NumCarroId); var maiorRota = Rota.OrderByDesce...
asked by 13.12.2017 / 17:48
1
answer

How to make a query bringing me the last value of a specific id

I'm trying to make a query through C # with MySQL, where it has two tables: Compra - > Table where you get the IdProduto and the Product Value. Abastecimento - > Table where the IdProduto will go and the P...
asked by 09.11.2017 / 18:53
1
answer

Doubt - MVC system view

I am developing a system for accounting in PHP, MySQL, jQuery and css, the system is divided into sectors, and each sector has a graphics tab (highcharts plugin), which are generated dynamically according to the parameters passed. It works as...
asked by 11.04.2017 / 19:34
1
answer

Am I using (learned) the MVC standard in the right way? [duplicate]

/ * Hello. A few years ago in college I had a practice class of standards with PhP, and one of them was the MVC. I learned with my teacher the MVC standard, but I do not know until now the same was taught in the correct way. Whenever I see pro...
asked by 17.05.2017 / 18:57
1
answer

Call Action via javascript

Good afternoon, I need help with a simple problem, but it's knocking me down. I need to call a controller method and pass two parameters to it, I did something, but it's not working, does anyone know where I'm going wrong? View <input...
asked by 13.03.2017 / 19:33
1
answer

What is the difference between domain logic and application logic?

How do I know if I should put the method in the class itself or in the BO of the class? When to know the difference of domain logic and application logic? Note: I was left with the doubt after read this article     
asked by 27.03.2017 / 03:29
1
answer

Ajax sending model to controller

I would like to know if it is possible for me to pass a "Model" object via ajax to my controller. $.ajax({ type: "POST", url: "@Url.Action("CadastrarSementesVariedades", "SementesLevantamentoVariedades")",...
asked by 07.03.2017 / 22:11
1
answer

Relationship between PHP Models [closed]

Hello I am developing a miniframework, for my projects, and have to create more knowledge about object orientation in PHP I have created a MODEL where it does a lot of everything, and my classes extend this MODEL .... So far everything is...
asked by 06.02.2017 / 21:43
1
answer

Create thumbnail without stretching / shrinking image in C #

I have this code that creates thumbnails for my project: //**** INICIO GUARDA THUMB ********** // valores para altura e largura do thumb: int resizeToWidth = 260; //px int resizeToHeight = 260; //px //busca-se a main image Image thu...
asked by 09.01.2017 / 14:24
1
answer

MVC structure on remote server

I have the following directory structure in localhost : -config -hsapp |--Controllers |--Models |--Views -public |--Assets |--Index.php -vendor composer.json It is perceived that it is an MVC structure. I created a virtualhost right...
asked by 20.03.2017 / 23:18