Shane McGovern wrote:
Hi Paul

I tried the resource.modules[] = but to now avail. I did however move the functionality from my Boostrap.php to application.ini but using these two lines instead

resources.frontController.controllerDirectory = APPLICATION_PATH "/controllers"
resources.frontController.moduleDirectory = APPLICATION_PATH "/modules"

Excluding either prevents module set-up.

<snip/>

Hi Shane,

I've been fighting modularization for quite a while but one thing that
I've discovered is that the order of the lines in your application.ini
is _extremely_ important.  A single line in the wrong order _will_ break
everything.

Here is a copy of a part my .ini that I'm using in one of my current
experiments; maybe it will help you.

; application resources
resources.frontController.controllerDirectory = APPLICATION_PATH
"/controllers"
resources.frontController.moduleDirectory = APPLICATION_PATH "/modules"
resources.modules[] =
resources.layout.layout = "default"
resources.layout.layoutPath = APPLICATION_PATH "/views/layouts"

I think it's important that the modules declaration comes before the
layouts, views, etc.

I got my first successful results by starting here:

http://www.amazium.com/blog/create-modular-application-with-zend

If you become a master *please* enlighten the rest of us.  This is a
very common source of frustration for a lot of us who are not the ZF
developers.

Best of luck :D

ps: no disrespect to the zf developers.  I've seen the incredible load
on your shoulders and am beyond impressed...

Reply via email to