Questions tagged as 'mvc'

3
answers

How to instantiate a model and get its resources by its name in Ruby on Rails

Since I have the abstract class User , and its subclasses Client Employee and Admin , I would like to render screens according to the chosen subclass. Therefore:      users/_form.html.erb : should contain a selection b...
asked by 12.01.2015 / 14:29
1
answer

Doctrine - Access the $ entityManager variable created in bootstrap.php from within a Class

I am studying Doctrine and am adapting a project I had already developed in MVC to work with Doctrine. I'm having some questions on how to proceed with the $ entityManager variable I create in bootstrap.php to be accessed inside a Controller...
asked by 29.06.2014 / 22:57
1
answer

PHP MVC Object Orientation

I have 4 tables in the database: Admin - Teacher - Class - Student and my question is: I would have to create: AdminModel.class.php ProfessorModel.class.php TurmaModel.class.php StudentModel.class.php AdminView.class.php Professo...
asked by 08.09.2015 / 04:27
1
answer

How to save data through Model?

My difficulty with the MVC standard is how calls work. For example, I'm working on a form: <form action=""> <label>Paciente:</label> <input type="text" name="usu_nome" id="usu_nome" value="" class="focus" onkeypre...
asked by 31.08.2018 / 20:21
1
answer

Pages .aspx in View folder in ASP.MVC project

Good afternoon guys, I am a beginner in MVC architecture and am having a question in an ASPNET.MVC project. I would like to know if it is possible in the "View" folder of the project, put an "aspx" page together with the "cshtml" files. If...
asked by 27.07.2018 / 21:57
1
answer

PHP MVC - How to execute Model methods?

Good afternoon! How do I execute a method of the Model class, in specific a method of insertion to the DB, in case I need to send the data of the Form. This is the form in View (sector.php): <form method="POST" enctype="multipart/form...
asked by 27.07.2018 / 21:01
1
answer

How to do the query select and call the connection on dao

I need help to structure my dao, how do I call the connection, how do I select within the function, and how do I list in my main the information that comes from select. As it is now: Connection to the bank. package Modal; import java.sq...
asked by 15.05.2018 / 18:39
1
answer

Remove parameter name URL MVC

I have the following URL    / vlog / usertimeline /? slug = tests for the Vlog controller, action usertimeline and slug parameter. How do I set the route to be    / vlog / usertimeline / tests I'm using MVC 4. I have the followi...
asked by 22.03.2018 / 16:34
2
answers

Razor language regionality

I'm having a problem with Razor (using MVC 2.1 .Net Core) when generating the screen, as below code, it is appearing the correct date in my Local development environment, but after Publish appears in English in other environments, could you forc...
asked by 09.10.2018 / 20:36
1
answer

Report Modeling in ASP NET MVC

I have several reports in the company, and I need to migrate them from webforms to MVC. My question is .. do I need to create a template for each report? This is correct? If not, how can I do it? For example: I have a report that should li...
asked by 20.02.2018 / 12:10