Questions tagged [model-view-controller]
Model–View–Controller (MVC) is an architectural pattern, introduced in mid 1970-s in PARC into how to compose software interfacing also with user-interactions. For Microsoft ASP.NET MVC, please use [asp.net-mvc] or [asp.net-core-mvc] tag instead. For Spring MVC, please use [spring-mvc] tag instead.
model-view-controller
33,615
questions
-3
votes
0
answers
17
views
Struggling to fix the routing problems I'm having in php [closed]
I'm having problems accessing the pages on my website using the routes that I set in the route.php file eg. localhost/online_library_1/categories, does not work, here is my folder structure, I don't ...
0
votes
1
answer
22
views
Redirect doesn't happen in Spring Exception Handler
in my GlobalExceptionHandler class I've implemented method responsible for catching exceptions related to expired or missing cookie. After the Exception is caught, user should be redirected back to ...
0
votes
2
answers
25
views
How to pass data from controller to model in laravel 10
I have been preparing one application in Laravel 10 and in my app I am not connecting with DB as it is just PHP code and based on that need to create CSV file. I have prepared my code in controller ...
0
votes
1
answer
34
views
dropdown MVC don't keep focus for selected option
I have asp net core mvc application. After clicking filter controller recives propper data, but drop down always shows All option:
@{
ViewData["Title"] = "Index";
IsOpenFilterState ...
0
votes
0
answers
14
views
Ideal use of controller and service layer
I have a question between the controller and the service, so I leave a question.
Below is an example.
There is an API that creates a company.
The process of creating a company is
Check if the company ...
-3
votes
0
answers
65
views
How to properly design a program with multiple menus using MVC [closed]
I am creating a program in which I have a MainMenu class which represents the main menu of the program. The main menu will have several different options to choose from through buttons, one of which ...
0
votes
1
answer
60
views
How do I make sure that I only load flights on search and not initial page load
Rails baby here! trying to work it out with Rails 7. I have a small toy app here that tries to search for flights then have users book a flight. I have managed to string together the app to a point of ...
0
votes
0
answers
13
views
how to automatically load a custom view in a plugin in cakephp?
Here I developed a nano system to publish thoughts in a diary, very simple, but functional for the need. The content is in a Json structure and there would be a need to change the aesthetics of the ...
0
votes
0
answers
11
views
I am trying to add a new event i to the existing events in a date or new events to a date using n Jquery Fullcalendar control
I am trying to add a new event to the jquery calendar control. I can see existing event in each date but I cannot add a new event . I am looking for a help to add new event to the calendar control. ...
1
vote
0
answers
48
views
How can I enable HTTPS support for localhost?
I am new to Helidon, and we want our Java app to support HTTPS for REST calls. I have a sample controller that returns some string, and my app currently runs on http://localhost:8080. How can I enable ...
0
votes
1
answer
31
views
CKEditor 5 " Cannot Upload File : [Filename] " in Laravel 11
I want to upload an image to Ckeditor, but when I upload it to the text editor, I can't
public function upload(Request $request)
{
if ($request->hasFile('upload')) {
$...
0
votes
0
answers
17
views
Refernce to RouteValueDictionary claims it is defined in System.Web but could not be found
I am currently learning to unit test in ASP.NET MVC, and I have encountered an issue while working on my Controller Test class. The error message states, "Reference to RouteValueDictionary claims ...
0
votes
0
answers
74
views
JavaFX: setting list for comboBox does not work
I am working in a JavaFX project. There I have fxml included in other fxml files. Now I need to send data from the outer controller to the inner controller. I've tried it, but the combobox looses its ...
0
votes
0
answers
50
views
The instance of entity type 'ApplicationUser' cannot be tracked because another instance with the same key value for {'Id'} is already being tracked
I have an app that uses the entity framework. I have 2 DB contexts, one for the live sql database and another using InMemory for users to demo the site without changing the live db. The problem is ...
1
vote
1
answer
43
views
How and Should We Validate Optional Query Parameters in Spring REST Controller
I have a Spring REST API endpoint defined as follows:
@GetMapping("/books")
public List<Book> getBooks(
@RequestParam @NotNull Long id,
@RequestParam(required = false) ...