Alex Tech Adventures The webs best tutorials!

Welcome, Guest
Please Login or Register.    Lost Password?

How-to bootstrap only Bootstrap.php in modules dir
(1 viewing) (1) Guest
Go to bottomPage: 1
TOPIC: How-to bootstrap only Bootstrap.php in modules dir
#340
How-to bootstrap only Bootstrap.php in modules dir 2 Years ago Karma: 0
I'm working with your ACL module layout and in index.php it runs $application->bootstrap(); This loads the modules/Bootstrap.php and the Bootstrap.php files in each of the modules (admin,default,library). Is there a way to prevent running the module-name/Bootstrap.php files when accessing the default module?

Cheers
PHPKick
Fresh Boarder
Posts: 10
graphgraph
User Offline Click here to see the profile of this user
Gender: Male Location: San Diego, CA USA
Last Edit: 2010/01/18 12:38 By PHPKick.
The administrator has disabled public write access.
 
#343
Re:How-to bootstrap only Bootstrap.php in modules dir 2 Years ago Karma: 0
Looks like one way I can do it is to use _initResourceName as autoloaded bootstrap resources and just ResourceName for functions I want to bootstrap manually.
PHPKick
Fresh Boarder
Posts: 10
graphgraph
User Offline Click here to see the profile of this user
Gender: Male Location: San Diego, CA USA
The administrator has disabled public write access.
 
#350
Re:How-to bootstrap only Bootstrap.php in modules dir 2 Years ago Karma: 16
I do not think there is a way to skip bootstrap files because it is the fundamental procedure in ZF for application initialization. It HAS to go through each bootstrap file in order to be aware of all modules, controllers etc. available.

What is your purpose?
alexanderrv
Administrator
Posts: 279
graph
User Offline Click here to see the profile of this user
Gender: Male tmthv2 alexchatonly@hotmail.com Location: Freeport, Bahamas Birthdate: 1989-04-14
The administrator has disabled public write access.
 
Go to topPage: 1
Moderators: alexanderrv
You are here: Home Forum

Statistics

Members : 1401
Content : 42
Web Links : 1
Content View Hits : 191196

Poll

Interested in TinyBrowser and TinyMce plugin for ZF?
 

Who's Online

We have 48 guests online