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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T22:36:01+00:00 2026-06-02T22:36:01+00:00

I came across this article, How to implement a front controller . The article

  • 0

I came across this article, How to implement a front controller. The article suggests that a better way to load controllers is to leave it to apache as this is what it was designed for.

So I have a few questions…

  1. Is using .htaccess a viable alternative to using php for routing requests to controllers?
  2. Which way is better, faster, modular and portable?
  3. Has anyone actually implemented an mvc framework in this way?
    If so, got any tips?
  4. Does anyone know of any websites that discuss this technique (I couldn’t find anything in
    google)?
  • 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-02T22:36:13+00:00Added an answer on June 2, 2026 at 10:36 pm

    The primary objection in that article to using a single entry point seems to be:

    …what about when you have hundreds of Page Controllers? You end up with
    a massive switch statment or perhaps something disguised in an array,
    an XML document or whatever. For every page request, PHP will have to
    reload a bunch of data which is irrelevant to the current request the
    user is trying to perform.

    That’s a very weak argument. Firstly, that’s a terrible way to implement a routing mechanism. Secondly, an application would have to be considerably complex for this to have any measurable effect – and if an application is this complex, it’s likely that any performance hit at the entry point is minimal compared to the execution of the rest of the application.

    And consider: if a PHP script for handling the front end of a complex web app is hard to maintain, imagine what the equivalent .htaccess file would look like!

    Finally, you can avoid the issue with a bytecode cache, making the “problem” of loading the script for every request moot.

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

Sidebar

Related Questions

I came across this article on Code Project that talks about using an abstract
I came across this article written by Andrei Alexandrescu and Petru Marginean many years
I came across this article discussing why the double-check locking paradigm is broken in
I came across this article , which mentions wrapping everything in a single element
I was reading about imports in python and came across this effbot article about
1) I came across THIS ARTICLE today, which states: The most popular method in
so i came across this interesting article on WPF exception handling: http://srtsolutions.com/public/item/251263 it works
I wanted to implement Comet in PHP and came across this page: http://www.zeitoun.net/articles/comet_and_php/start The
Just came across this article about NOSQL patterns (not mine). It's covers lots of
I was reading this article and I came across the following definition (in qglobal.h

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.