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 8664329
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T17:12:57+00:00 2026-06-12T17:12:57+00:00

This question can be related to any MVC Framework. How do you organize your

  • 0

This question can be related to any MVC Framework.

How do you organize your controllers in MVC application?

Lets say I have a Blog application. This blog application would have 2 layers.
Blog layer that shows latest 10 posts, single post, posts by category etc.

And I would have Admin layer that would enable user to create new blog post, edit post, delete post, create category…

How would I build my controllers?
Should I create Blog Controller and Admin Controller?
Or should I fallow Domain Driven Design and create BlogController, PostController that would deal with actions related to that Object?

The question is how to organize your controllers, should Controllers be something like “namespaces” for related functionality? So Administration functionality would have Admin controller that would deal with create, update, delete actions, and Blog Controller would deal with showing those posts to the end user?

I hope you get what I need, explanation on how to organize your Controllers in MVC?

  • 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-06-12T17:12:58+00:00Added an answer on June 12, 2026 at 5:12 pm

    I think there is no ‘better way’ to do this. You can organize your controllers the way you find easier. In fact you could use a single controller for both Blog layers without problems or performance loss.

    That said, in my projects I prefer to use two controllers (like in your first approach), so I can set up authentication per controller (no need to do it per action). But it is a matter of preference.

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

Sidebar

Related Questions

I have not been able to find any definitive answers to this question: Can
This is a related question to: Android NFC start service In Android, can an
I know this question can be answered by searching in google. But I have
This question is related to another I ask recently, it can be found here
So I'm googling this question and can't really find any clear examples since almost
This is somewhat related to this question : I have a table with a
[Disclosure: This question is slightly related to my previous question .] As you can
This question is related to this post : int to binary python I have
This question is related to Symbian OS yet I think that C/C++ veteran can
I am using the jQuery-File-Upload widget (although I believe this question can generalize to

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.