New answers tagged

-2

Does search logic belong in the controller or the model? Neither and both. In the circumstances that you describe, you actually have a need for several different search algorithms, along with the need to determine which one to use at any given time. This tells me that the model's Search() method needs to take in the algorithm as a dependency. ...


1

The View is responsible for displaying data and accepting input from the user. The Controller is responsible for accepting requests and directing them to the proper method in the model for performing the requested operation, including related operations such as granting or denying security access and form validation. It is also responsible for directing ...



Top 50 recent answers are included