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

  • Home
  • SEARCH
  • 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 627269
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T19:30:36+00:00 2026-05-13T19:30:36+00:00

Zend framework is pretty fast growing, we all agree and we all had been

  • 0

Zend framework is pretty fast growing, we all agree and we all had been surprised while trying out the modular structure of Zend Framework, if to be concrete the bootstraping of the modules – all the bootstrap files of the modules are executed in the beginning no matter if we are using/accessing that module or not. As far as I remember the module bootstrap gets executed like plugin to the main Bootstrap. But on the other hand I find implementation of ZF very sophisticated and written with great respect to design patterns.

So before going and stumbling the Module Lazy Load/Bootstrap, I would like to have a objective thought on the bootstrapping aspect

— So does the initial module bootstraping in ZF have a solid logic behind it or should it be changed to something like lazy/on demand bootstrapping?

I know question is pretty implicit , so let me give some more

for instance in a modular app we want to have a separate initial configurations for each module(like a separate layout) and the bootstrap is a paradigm for a “place to do initial configurations “,right? But if we place initialization/configurations in the way Zend Documentation says, then our application loads all the initializations that have been set up in every module bootstrap class for every request.(I’m just a guest and still when i request something admin bootstrap will be executed, though in the background) – it is pretty much trashing the system.

as far as I see there are two ways the idea can flow

  1. to have in the module bootstrap things that are only complementary to the whole system
    (pretty much don’t see what it can be)
  2. To change the way modules bootstrapped with a help Action plugin or extending the Bootstrap class that deals with boostrapping the madule bootstraps

And my initial question was is there any logic to follow the first option, and would the 2nd option will be a good choice?

  • 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-13T19:30:36+00:00Added an answer on May 13, 2026 at 7:30 pm

    Yes. It’s based on the dispatch process. You can’t tell which one would you need in the time of bootstraping. Module bootstraps has one advantage – that you don’t need to insert module code to the main bootstrap – it makes modules more “self-contained”.

    Module depends on

    • request
    • selected route
    • if for ex. _forward() was called

    But you might want to add your routes for each module, inject your own disatcher etc. And this all needs to be done before creating the request object. That’S why are all bootstraps initiated in the begining.

    In ideal case, your bootstrap should not contain repetitive code or add any serious overhead. You can retieve resources from other initiated bootstraps so there are no copies of objects like db adapter or view.

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

Sidebar

Related Questions

I am pretty new to the zend framework and the JQuery helper. I have
The Zend Framework based site I have been working on is now being migrated
I have a Zend Framework application structure as below: /application /library /Zend /Core /Filter
All, I have a PHP5 application written with Zend Framework and MVC style. My
I am using Zend Framework 1.9.6. I think I've got it pretty much figured
I'm pretty sure this is not possible in Zend Framework (I have searched the
I have a pretty weird problem related to zend framework's zend_db. I use $this
I'm trying to download zend-framework (from http://framework.zend.com/releases/ZendFramework-1.11.11/ZendFramework-1.11.11.zip ) simply using WebClient string url =
I am pretty familiar with Zend Framework details and how most things work. One
Zend Framework FrontController implements Singleton and plus it has some kind a plugin paradigm

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.