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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T15:58:10+00:00 2026-05-27T15:58:10+00:00

This may seem like a silly question if so sorry =] Ok i have

  • 0

This may seem like a silly question if so sorry =]

Ok i have been building a php framework a small one to speed up development. I know there are others such as codeignitor but i want the knowledge of building one from scratch. Anyways I have created a structure best I can through research etc.

I have everything separate like;

application/
/models / My Models such as Database.php 
/views < I have a View.php
/controllers < I have a HomeController.php

I set up all the main stuff with the index.php any queries get passed to php and it does what it needs to do like so:

http://localhost/Framework/home/index 

This will translate into HomeController->index

So i set my variables n such in the index method and then send it all to the view class to be rendered… works a charm.

My question is this, do I need a different class for each page? like: http://localhost/about/

Maybe this would then point to AboutController->index or is it fine as is like this: HomeController->about

I think the latter is correct or does it even matter?

  • 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-27T15:58:10+00:00Added an answer on May 27, 2026 at 3:58 pm

    When merging the about and index pages to one controller, HomeController isn’t a proper name. However, it’s a perfectly valid approach.

    Controllers usually group types of pages together. For example, you’d have all your login pages (actions) in one controller, all blog actions (create, retrieve, update, delete) in one controller, etc. If your about and home pages both welcome people to your site, call it something like WelcomeController.

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

Sidebar

Related Questions

This may seem like a silly question. We have a streaming server and the
This may seem like a silly question but I can't figure it out. let's
Now this may seem like a silly question, but I need to know how
Hi this may seem like a weird question, but here's my situation: I have
This may seem like a silly question, but we are having an issue debugging
This may seem like a silly question, but what are the functional differences, if
This is my first question here (yay!). This may seem like a silly question
Im new to rails so this may seem like a silly question but why
Ok this may seem like a bit of a noob question but one many
This may seem like a silly question at first, but I can't seem 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.