Questions tagged as 'mvc'

3
answers

How do I hide URL IDs?

17/11/2016 I have an application that is building the following URL www.mysite.com/controller/action/id However, I need the ID not to be displayed in the URL, but to leave it alive in back-end , because it is a requests s...
asked by 17.11.2016 / 17:54
2
answers

Popular DropDownList from another

Good morning, I have a DropDownList populated from a Model class. example: Processor, Memory, HD Afterclicking"+" I have to add another DropDownList with all values less than the value selected in the previous Combo. @if (Model.ListAtri...
asked by 08.03.2017 / 15:27
1
answer

How to implement Plugins in an MVC Framework

I'm creating my own Framework MVC , mainly for studies, and would like to implement plugins on it, but I have no idea how to do it. I would like to know some points, such as: Control of plugins installed? How to control which...
asked by 30.05.2016 / 20:22
1
answer

Undefined Variable, PHP MVC Application

I'm having the following error returning in my code    Notice: Undefined variable: errors in D: \ wamp \ www \ mvc \ application \ controllers \ login.php on line 33 This is my Controller: class Login extends BaseController { publi...
asked by 09.05.2016 / 16:20
2
answers

How to receive value from a variable of another Class

I have a variable in class Class1 and I want to use this variable in a function in class Class2 Screen1 has as its control the Class1 and screen2 has Class2 When calling screen2, Class2 will perform a function that has the class1 va...
asked by 10.11.2015 / 21:28
2
answers

MVC and dynamic language change

I have a MVC myself that I implement in my projects in PHP . This supports multiple languages and by default they get the active / initial language from the browser. However, there are projects that require the language modificat...
asked by 29.05.2015 / 11:52
1
answer

Querying using linq to sql in ASP.NET MVC

I have a question about how to return the records according to the query. I do not know what might be wrong, but the query is not returning according to what was passed. I have my controller: public ActionResult Index() { //retornar tod...
asked by 05.04.2015 / 15:27
1
answer

How do I get the name of a button in the MouseListener?

How do I get the name of a button in a class that implements the MouseListener: public class Viewer extends javax.swing.JFrame{ public Viewer() { initComponents(); } public void init(){ MouseListener ouvinte = new...
asked by 19.05.2014 / 01:11
1
answer

The default MVC Model class in PHP

I'm studying MVC, I created the abstract Model class to serve as a "template" for the others that can inherit it. I would like an evaluation of the code as, positives and negatives, how best to improve it, etc. abstract class Model { priva...
asked by 10.06.2014 / 04:34
1
answer

MVC Insert text into a label when the button is selected

I try to fill in a label when I click a button. I created a method, a label, and a button. The purpose is that by pressing the button, the label is populated with the data I receive. I have almost everything functional, but when I click the b...
asked by 19.12.2018 / 13:48