Re: [fw-general] Module Bootstrap

2011-05-05 Thread Hector Virgen
The "pluginPaths" option allows you specify *prefixes* to your bootstrap resource plugins. So you'll want something like this: pluginPaths.My_Resource = "My/Resource" And you would create your resource plugin here: My/Resource/Frontcontroller.php And the class would look something like this:

Re: [fw-general] Module Bootstrap

2011-05-05 Thread Simon Walter
On 05/05/2011 02:35 PM, Greg wrote: Instead of overriding the FrontController itself, you could override the Front Controller bootstrap resource (Zend_Application_Resource_Frontcontroller) - it should be possible to specify the dir location for your overriding resources. Then in that custom front

Re: [fw-general] Module Bootstrap

2011-05-04 Thread Greg
Instead of overriding the FrontController itself, you could override the Front Controller bootstrap resource (Zend_Application_Resource_Frontcontroller) - it should be possible to specify the dir location for your overriding resources. Then in that custom front controller resource class, it could b

Re: [fw-general] Module Bootstrap

2011-05-04 Thread Simon Walter
On 05/05/2011 00:27, Hector Virgen wrote: You might want to use a front controller plugin to handle this. The plugin could inspect the route prior to dispatching (using the routeShutdown() hook) and if the detected module is disabled it could forward the request to the error controller. Using a

Re: [fw-general] Module Bootstrap

2011-05-04 Thread Hector Virgen
You might want to use a front controller plugin to handle this. The plugin could inspect the route prior to dispatching (using the routeShutdown() hook) and if the detected module is disabled it could forward the request to the error controller. -- *Hector Virgen* Sr. Web Developer http://www.virg

Re: [fw-general] Module Bootstrap

2011-05-03 Thread Simon Walter
On 04/05/2011 12:29, Oscar Merida wrote: On Tue, May 3, 2011 at 10:20 PM, Simon Walter wrote: From looking at some of the module related methods of Zend_Controller_Front, I'm wondering if the dispatcher(?) scans *all* the module directories and does some bootstraping or loading of all modules

Re: [fw-general] Module Bootstrap

2011-05-03 Thread Oscar Merida
On Tue, May 3, 2011 at 10:20 PM, Simon Walter wrote: > From looking at some of the module related methods of > Zend_Controller_Front, I'm wondering if the dispatcher(?) scans *all* the > module directories and does some bootstraping or loading of all modules > regardless of if they are being acce

Re: [fw-general] Module Bootstrap

2011-05-03 Thread Simon Walter
On 04/05/2011 10:53, Mark Harris wrote: Hi Simon, I need to be able to do some tests and then if the requirements are not met, disable the module so that it cannot be used. I think, then a good solution would be: Zend_Controller_Front::getInstance()->removeControllerDirectory($module); Tha

Re: [fw-general] Module Bootstrap

2011-05-03 Thread Mark Harris
Hi Simon, I need to be able to do some tests and then if the requirements are not met, disable the module so that it cannot be used. I think, then a good solution would be: Zend_Controller_Front::getInstance()->removeControllerDirectory($module); That would effectively remove all controller

Re: [fw-general] Module Bootstrap

2011-05-03 Thread Simon Walter
On 04/05/2011 09:21, Mark Harris wrote: Hi Simon, Is there a way to completely disable a module? Would generating 404 from the module's bootstrap be sufficient? How about the autoloader? Is there a way to stop that? You can remove the module from your resources.modules listing so the contro

Re: [fw-general] Module Bootstrap

2011-05-03 Thread Mark Harris
Hi Simon, Is there a way to completely disable a module? Would generating 404 from the module's bootstrap be sufficient? How about the autoloader? Is there a way to stop that? You can remove the module from your resources.modules listing so the controllers for that module are not registered.

[fw-general] Module Bootstrap

2011-05-03 Thread Simon Walter
Is there a way to completely disable a module? Would generating 404 from the module's bootstrap be sufficient? How about the autoloader? Is there a way to stop that? I'm making a module registry system with dependency. So a module should not be accessible at all, unless certain requirements ar

Re: [fw-general] module bootstrap doesnt load module routes

2009-05-24 Thread chrisweb
chrisweb wrote: > > > - but now i get another error msg: > > An exception occured while bootstrapping the > application.simplexml_load_file() [function.simplexml-load-file]: I/O > warning : failed to load external entity > "file:///C:/xampp/htdocs/gamerszone/application/categories/configs/rou

Re: [fw-general] module bootstrap doesnt load module routes

2009-05-24 Thread chrisweb
ssbg wrote: > > Chris, > > I'm having problems with module configs too, but I'm guessing that your > function name should be "_initRouter()". Are you seeing your error > message logged? If your logger is working, log your routes before you > send them to the router to verify they're being re

Re: [fw-general] module bootstrap doesnt load module routes

2009-05-23 Thread ssbg
Chris, I'm having problems with module configs too, but I'm guessing that your function name should be "_initRouter()". Are you seeing your error message logged? If your logger is working, log your routes before you send them to the router to verify they're being read properly. HTH. chrisweb

[fw-general] module bootstrap doesnt load module routes

2009-05-23 Thread chris weber
Hello, I have another problem related to the bootsrap, i have created a main bootsrap which uses the db resource to setup database, then i created two modules: application bootstrap (the application bootstrap) -modules --articles ---bootstrap (the articles module bootstrap) --categories ---bootst