Category "model-view-controller"

Why doesn't scaffolding work as expected?

I am trying to scaffold and I get the following error: There was an error running the selected code generator: 'No parameterless constructor defined for typ

How to merge duplicates in a column in Ruby on Rails?

I have this filter here for sign name. What I want to do is if I have more than one name of the sign to merge the content together Check the image attached. I h

DataTables warning, Requested unknown parameter 'CustomerID' for row 0, column 0

I'm trying to implement datatables to my MVC ASP.NET Core with MySql project so i followed a step-by-step tutorial but i can't fix this error: " DataTables warn

Alerts or popup message boxes in Spring MVC

I am having a user add form userAdd.jsp. When I enter data and submit, I want to check whether the username field entered is unique compared with the databse.

How can i paginate laravel collection?

here is how i trying to paginate: $posts = Post::all()->sortByDesc("created_at")->pagination(1); but i get this error: Method Illuminate\Database\Eloquen

MVC with tkinter?

MVC with tkinter? I'm trying to do a simple flashcards game with tkinter with MVC pattern but I do not know how to connect the view with their controller...the

How to pass model as a Parameter in Repository method at controller?

So my problem is like that, When I am trying to pass the model in repository method on controller I getting error like this Object reference not set to an insta

Trying to connect to wwwroot and get a image

I work in aspnet core mvc technology, I manage to add an image, it does go to wwwroot, but the image does not display well in the browser Example: enter image d

Returning BadRequest in method that returns PartialViewResult

I have an MVC5 application that has a method populates and returns a partial view. Since the method accepts an ID as a parameter, Id like to return an error if

In Spring mvc application, @RequestBody is throwing java.io.EOFException

In the jsp i am passing the data as json,as in the controller method i am trying to map the data to Personbean object using @RequestMapping. But its throwi

How to handle too much logic in the controller vs the models calling each other

I encountered a code design problem while working on a small application. In terms of features, there are a list of tables, each having 2 seats. If two players

Populate Dynamic Dropdowns List in Codeigniter

Database inlcude Groups like Arts,Science and IT.By Choosing one Group Second Dynamic Dropdown appear which will show the Subjects Related to Group. This is my