Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6226985
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T09:07:59+00:00 2026-05-24T09:07:59+00:00

I am developing a web application and I am implementing my own MVC architecture.

  • 0

I am developing a web application and I am implementing my own MVC architecture. I have the base Model, View, and Controller classes set up and working. These work great for displaying or manipulating single objects.

However, I have run into the problem of how to display (and manipulate) lists of these objects.

For simplicity’s sake, let’s say I have a Model_Event model which contains attributes about the event like id, name and date. I want to list all events in the database.

Should I have a controller separate from Controller_Event called Controller_Event_List, and should I have a separate model Model_Event_List that populates and contains an array of Model_Event objects?

Or should I use the same controller I use for single event objects and just have a method in Model_Event that returns an array of event data to display?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T09:08:00+00:00Added an answer on May 24, 2026 at 9:08 am

    Deciding whether to use one or multiple controllers is something application specific, you should ask yourself which is better suiting your application needs in terms of interface convenience for clients/users and server side code reuse/DRY.

    Since you can always consider single results as a special case for lists you are always able to leverage lists as the one and only abstraction to use throughout the code. Moreover, you should already have a service layer underneath your controllers that does the actual fetching of objects from the DB, which is also subject to the same design choices.

    My taste would probably be for single-service, multiple-controllers solution, but it really depends to application specific details (navigation rules, use cases, …).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm developing a web application based on Struts2 Framework for implementing the MVC, and
I am developing a web application which has Chart Controls. I have developed a
I am developing a web application using Struts 2.1.2 and Hibernate 3.2.6.GA. I have
I am developing web application where users have collection of tags. I need to
I have some doubts, i m developing a web application in GWT using MVP
Im developing a web application in asp.net mvc (c#) that has a form and
I am developing a web application in which I will have customers and suppliers.
I am developing a web application using zend framework. For select statements I have
I am developing a full-web application and I am using the ASP.NET MVC 3
When developing a web application using ASP.NET, do you have any hints about how

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.