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

The Archive Base Latest Questions

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

I am working on making a PHP Framework, mostly as a learning experience and

  • 0

I am working on making a PHP Framework, mostly as a learning experience and to test my knowledge about what is ‘smart’ for a framework.

One thing I find puzzling is the bootstrap, I understand it’s a great place to start sessions, set up a registry and have other things to start up your application.

However, what I don’t understand is… why not put that in the index.php?

In my experience, both the bootstrap and the index.php are small files. Sometimes the bootstrap is quite large but the index never is.

So why would I bother with a separate bootstrap file?

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

    For anything your code, you can put it into as many files as you like. If you dislike separating code into files because of their meaning (modularity), then just mesh everything into one file.

    Clever persons however separate stuff (modularity). If modular becomes a hindrance, they just use automation (see build automation) to just build one file out of multiple.

    So why would I bother with a separate bootstrap file?

    So the only one who can answer your question is you. Therefore please decide on your own:

      [ ] I have a reason to separate
      [ ] I have no reason to separate
    

    The important part is that you think about it. Try to find arguments for and against, list them next to each other. Decide.

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

Sidebar

Related Questions

I have been working on my own library/framework for the learning experience for a
I am working on making a widget like this one here: http://www.comehike.com/outdoors/widget.php?hike_id=176&height=400&width=700 And for
We're making this web app in PHP and when working in the reports we
i've been making web app's and working with various server side language like php,
Hi im making a custom Textbox i got everty thing working but how do
I am using PHP and the codeigniter framework for a project I am working
I'm working on a php/codeigniter project and I'm thinking about creating a controller specifically
I'm working with PHP, and I'm making an action page which a form posts
I'm working on improving one popular php forum software. A month ago I've initiated
I have some PHP code that was at one point WORKING FINE. It makes

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.