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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T15:59:20+00:00 2026-06-04T15:59:20+00:00

With ZF1 there was a bootstrap file defined under application/Bootstrap.php but I can’t find

  • 0

With ZF1 there was a bootstrap file defined under application/Bootstrap.php but I can’t find it when looking at the ZF2 skeleton application.

What is the ZF2‘s equivalent to the ZF1 Bootstrap.php 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-06-04T15:59:21+00:00Added an answer on June 4, 2026 at 3:59 pm

    In ZF2, there is no individual Bootstrap file as there was in ZF1. You can however, add an onBootstrap() method to any of your Module classes so it will be called after loadModule.post once $application->bootstrap() is called.

    On github in the ZF2 Skeleton App, the file you would add an onBootstrap() method to is located at module/Application/Module.php.

    Here is some relevant documentation on Bootstrapping from the ZF2 user guide (note: any of this material is subject to change).

    The MVC Bootstrap Event
    Bootstrapping an Application
    Bootstapping (in relation to MVC)
    Sample usage of the MVC Bootstrap Event

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

Sidebar

Related Questions

I am learning ZF2.0 beta . In ZF1 we can change layout on the
Im unable to initialize Jquery(Zendx) and View helpers in Bootstrap.php(ZF: 1.10.8) But Im able
I have the following function in ZF1 login controller and works fine but cannot
I'm trying to use modules in the ZF 1.8 project but can't get working
I have a folder with custom classes in a ZF 1.10 application. The folder
can anybody help me how to nice integrate doctrine 2.0 into ZF 1.10? I
Our vendor-supported server's O/S only supports PHP 5.1.6, which limits us to ZF 1.6.
I have come across a strange problem with Zend_Framework, I can not load forms
Here's my problem. I'm developping an application using ZF 1.10.0, and I have a
Something very strange. WSDL file generates fine. Here is source simple class class SoapTest

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.