Mike Clark
Mike Clark

Reputation: 1870

Is there a way to make different bootstrap file for different modules using ZEND framework

Right now I am using ZF1 and I don't want to load functions which are associated with different module at the time of initiation. I would like to make different bootstrap file for that.

enter image description here

The common bootstrap file extends Zend_Application_Bootstrap_Bootstrap

class Bootstrap extends Zend_Application_Bootstrap_Bootstrap

Upvotes: 2

Views: 42

Answers (1)

Richard Parnaby-King
Richard Parnaby-King

Reputation: 14882

Each module may have its own bootstrap.php file. Change the class definition to:

class Admin_Bootstrap extends Zend_Application_Module_Bootstrap

Where Admin is the name of your module folder.

You can now have an independent bootstrap for this module.

Upvotes: 1

Related Questions