2008年11月29日星期六

[fw-mvc] Project structure within modular application

Hi,

 

I’m trying to run a modular application based on ZF MVC, so I’ve created the project structure as it is described in Quick start guide (/application copied under /application/modules/{somemodule}). Because of using modules, I have several problems with the structure and bootstrapping the application, because there is no modular application Quick start guide:

 

$frontController->setControllerDirectory(APPLICATION_PATH . '/controllers')->addModuleDirectory(APPLICATION_PATH.'/modules');

 

Calling setControllerDirectory looses it sense, doesn’t it?

 

I’d like to set layout directory depending on the modules configugration file, but – how can I parse application/modules/{somemodule}/config/config.ini in the bootstrap?

 

Has anybody any solution for this? Is there any guide for modular app?

 

Thanks for any response

Jiri

 

没有评论: