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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T12:26:05+00:00 2026-05-18T12:26:05+00:00

I think I get the basic concepts of MVC, but I’m not sure where

  • 0

I think I get the basic concepts of MVC, but I’m not sure where I should put my “home page”? By that I mean for example the page that would come up if you navigated to stackoverflow.com rather than something like stackoverflow.com/questions which has an obvious controller attached (the “questions” controller).

I have a function which determines what controller to use based on a GET variable, but I’m not quite sure what do do when that variable is missing. I was thinking of adding a define() for like a “default path” but I’m not sure what to use. The main page will fall in a category of pages, but will be its own separte entity. To use stackoverflow as the example, I could route the front page to the ‘questions” controller, but don’t know what to use as an action. “questions/frontpage” seems like a bad name to me.

Its odd, but I don’t see this covered in any MVC tutorial online.

  • 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-18T12:26:05+00:00Added an answer on May 18, 2026 at 12:26 pm

    You would use a home controller, generally.

    If you have basic routing set up in a bootstrap type file, just point a blank $_SERVER['REQUEST_URI'] or similar to your home controller.

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

Sidebar

Related Questions

I think its quite a simple question but not sure. I have a class:
I think I get the basics of multi-threading with Java. If I'm not mistaken,
OK I think I get Difference between jQuery.extend and jQuery.fn.extend? in that the general
I'm beginning to think that to get a ProgressDialog to work the AsyncTask has
I think that handlers in android are tools to get different objects that are
I have some fundamental points/questions about OpenGL, not all involving code but concepts as
I'm trying to figure out how make a basic GET request using Network.HTTP.simpleHTTP that
I think I have a fairly basic question here. I'm not trying to waste
So... I used to think that when you accessed a file but specified the
I'm learning C++ from book. I think I understand basic concept but the book

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.