Questions tagged as 'mvc'

1
answer

Create select for a table in PHP

I'm having trouble creating select for later use in a table. The required SQL tables are as follows: “Aluno” (**PK:** id, numero, nome), “Area” (**PK:** id, nome), “UC” (**PK:** id, nome, **FK:** id_area) “Classificacao” (...
asked by 10.12.2017 / 22:52
2
answers

Flask MVC - doubts

I have doubts about making my application as organized as possible, I'm having a hard time implementing MVC ... ThisisthefilethatlaunchestheapplicationfromflaskimportFlaskapp=Flask(__name__,template_folder='template')app.run(debug=True)Thisisth...
asked by 08.09.2018 / 19:17
1
answer

Send parameters to Restfull services [closed]

I have a mvc web application and I have an action that should pass a parameter to a REST service. How do I pass a parameter to a REST service. I know I will have to implement an HttpPost, but how? Anyone know of a tutor who can help us? EDIT...
asked by 18.10.2017 / 19:50
1
answer

Get click element (this) in method

I am refactoring a SPA using MVC with classes and etc ... I made a method that is called when I click on a <i> element and would like to get that element to later delete a relative of it (a <tr> two levels above)....
asked by 01.11.2017 / 12:39
2
answers

How to create a View to insert multiple entities

I have an entity that has child entities, for example: - Supplier (owns the main supplier data) - SupplierEmails - ProviderTelephones - SupplierEnderts - etc ... Where each entity is a related database table. In MVC I created a Model for e...
asked by 08.08.2017 / 20:53
2
answers

How to organize multi-level MVC application

I'm developing an application following the MVC standard, and will have 2 levels of users, normal and admin, regarding the options of what each user can do, it is better to make a logic in the controller to show certain view or some action from...
asked by 23.07.2017 / 18:26
1
answer

Doubt on .NET Framework 3.5 and ASP.NET MVC

I need to create an ASP.NET MVC application using the .NET Framework 3.5 following steps: File - > New - > Project, so I choose, Visual C # Template - > Web After .NET Framework 3.5 and APS.NET Empty Web Application ,...
asked by 28.03.2017 / 16:08
1
answer

Clarification of MVC architectures in PHP [duplicate]

Good afternoon guys, I'm starting with php OO and with MVC, I'd like to know if the code snippet runs short of the standards, and if there's any improvement to be implemented. Thanks in advance for your help. <form method="post" action...
asked by 05.04.2017 / 20:36
1
answer

Link call method in Controller - C # MVC

I have a MySQL table that is displayed on a page of my project: foreach (var item in Model) { <tr> <td>@Html.DisplayFor(modelItem => item.id)</td> <td>@Html.DisplayFor(modelItem => item.nomeMarca...
asked by 04.04.2017 / 11:45
1
answer

How to set the db variable in ClientModel?

I'm crawling on MVC and I'm catching up on a 'simple' registry. By clicking on register, the errors appear:    Notice: Undefined variable: db in C: \ xampp \ htdocs \ cadastromvc \ App \ Models \ ClientModel.php on line 9       Fatal error...
asked by 12.01.2017 / 20:01