Problem Is this correct? Or am I overloading the responsibilities of the view? <table class=”table table-striped table-hover”> <thead> <tr> <th>Estado</th> […]
Tag: controller
Passing argument to a constructor and using it only in some class methods
Problem I’ve created some controller for handling clicked links statistics. Does this class meet Single Responsibility Principle? class StatisticsController { […]
Polymorphic event notification model in Rails
Problem I have a polymorphic notification model. When user gets a notification he can get on the page of the […]
Setting value of controller controls for domain objects with Reflection
Problem Is my use of Java Reflection an OK design? Each domain object contains an annotation to declare what controller […]
Is this the right approach for Controller-Service-Dao implementation?
Problem I am a bit confused with Controller Service Dao implementation . I created a dummy User servlet along with […]
Controller for classrooms and students
Problem The actions I’m wondering about are members, add_student, and remove_student. They work just fine, but they aren’t RESTful and […]
eCommerce web appliation
Problem I am making an eCommerce web application using the Laravel 5 framework. I have created a Categories controller for […]
Router Class In a Lightweight MVC Boilerplate
Problem I’m trying to come up with a simple router class. I considered using a Request class, but I think […]
JavaFX controller for a poker game
Problem I am making a poker application in JavaFX. When I try to display the cards on the screen it […]
How could I make my controller a little less hideous?
Problem I have a controller. It functions as follows: A user imports a file and decides whether the files contents […]