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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T13:38:37+00:00 2026-05-27T13:38:37+00:00

Ive got 2 modules (Web, Admin) with a special boostrap class for every module.

  • 0

Ive got 2 modules (Web, Admin) with a special boostrap class for every module.

Abstract example:

class Admin_Bootstrap extends Zend_Application_Module_Bootstrap{
protected function _initAdminHello(){
    echo "Hello from Admin";
}}


class Web_Bootstrap extends Zend_Application_Module_Bootstrap{
protected function _initWebHello(){
    echo "Hello from Web";
}}

When i call “http://example.com/web” it shows:

“Hello from Web”

“Hello from Admin”

Question: How can I stop all method executions in “Admin_Bootstrap” when the web module is called and vice versa?

This is a performance killer.

  • 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-27T13:38:37+00:00Added an answer on May 27, 2026 at 1:38 pm

    Unfortunately, you can’t. As Matthew Weier O’Phinney explains in this post, module bootstrap is for preparing resources that may be required, especially adding routes to the router and configuring namespaces and autoloaders to access resources in the module.

    If there are tasks you need to perform only when the module is the one requested in the url, then these should go in a front controller plugin.

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

Sidebar

Related Questions

I've got a test class in a module that extends another test class in
Ive got a simple Nunit runner for a rake script i have: module NUnitRunner
I've got Drupal working on a shared host, and I uploaded some modules from
I've got a module that I'm attempting to turn into a proper OTP application.
I've got a VB.NET module that reads from a resource file to display text
I've got a big multi-module project, and I'd like to generate a report that
I've got a main project where module A depends on a a .jar file
I'm working on a hack to the DotNetNuke Events module. I've got the source
After many hair-pulling frustrations I've finally got one version of the PerlMagick module working
Ive got the following code which I hacked together from website examples. It works

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.